diff options
Diffstat (limited to 'src/game/g_spawn.c')
-rw-r--r-- | src/game/g_spawn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/g_spawn.c b/src/game/g_spawn.c index 07e3407f..6bad35a2 100644 --- a/src/game/g_spawn.c +++ b/src/game/g_spawn.c @@ -324,7 +324,8 @@ qboolean G_CallSpawn( gentity_t *ent ) } //check buildable spawn functions - if( ( buildable = BG_FindBuildNumForEntityName( ent->classname ) ) != BA_NONE ) + buildable = BG_BuildableByEntityName( ent->classname )->number; + if( buildable != BA_NONE ) { // don't spawn built-in buildings if we are using a custom layout if( level.layout[ 0 ] && Q_stricmp( level.layout, "*BUILTIN*" ) ) |