From 16de7f593c6d6b234e05d2349c0f51956c65e5cf Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sat, 22 Apr 2006 22:33:40 +0000 Subject: * Fix to an uninitialised variable (from tjw) --- src/game/g_buildable.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 ); -- cgit