projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix uninitialized mem
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_routes.h
diff --git
a/world_routes.h
b/world_routes.h
index 1a51102f08f39f1cbec769e27af032502bfe8e7d..8f570d20689cbb0546c8bd8f5694c63bfae7116f 100644
(file)
--- a/
world_routes.h
+++ b/
world_routes.h
@@
-1015,6
+1015,7
@@
static void world_routes_loadfrom( mdl_header *mdl )
1, sizeof( struct route ) );
struct route *route = &r->routes[r->route_count];
+ memset( route, 0, sizeof(struct route) );
v3_copy( inf->colour, route->colour );
route->colour[3] = 1.0f;