summaryrefslogtreecommitdiff
path: root/src/game/g_buildable.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2006-04-22 22:33:40 +0000
committerTim Angus <tim@ngus.net>2006-04-22 22:33:40 +0000
commit16de7f593c6d6b234e05d2349c0f51956c65e5cf (patch)
tree1138f0ee39139cc848cbf82af01192694a793251 /src/game/g_buildable.c
parent7849c3bf85b8a4ac41161c4fc4a9c33c19c47879 (diff)
* Fix to an uninitialised variable (from tjw)
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r--src/game/g_buildable.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 20b84f5e..27e542ee 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -233,6 +233,7 @@ qboolean G_isPower( vec3_t origin )
dummy.parentNode = NULL;
dummy.biteam = BIT_HUMANS;
+ dummy.s.modelindex = BA_NONE;
VectorCopy( origin, dummy.s.origin );
return findPower( &dummy );
@@ -439,6 +440,7 @@ static qboolean isCreep( vec3_t origin )
memset( &dummy, 0, sizeof( gentity_t ) );
dummy.parentNode = NULL;
+ dummy.s.modelindex = BA_NONE;
VectorCopy( origin, dummy.s.origin );
return findCreep( &dummy );