Skip to content

Commit

Permalink
Fix console error on BreakableBrushes without spawnobject
Browse files Browse the repository at this point in the history
  • Loading branch information
z33ky committed Jun 6, 2021
1 parent 7d2970e commit 35656dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sp/src/game/server/func_break.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ bool CBreakable::KeyValue( const char *szKeyName, const char *szValue )
if ( object > 0 && object < ARRAYSIZE(pSpawnObjects) )
m_iszSpawnObject = MAKE_STRING( pSpawnObjects[object] );
#ifdef MAPBASE
else
else if ( object != 0 )
m_iszSpawnObject = AllocPooledString(szValue);
#endif
}
Expand Down

0 comments on commit 35656dc

Please sign in to comment.