diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/bg_misc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/bg_misc.c b/src/game/bg_misc.c index 0ebcc55..b7f23f3 100644 --- a/src/game/bg_misc.c +++ b/src/game/bg_misc.c @@ -5437,6 +5437,9 @@ void BG_ParseCSVBuildableList( const char *string, buildable_t *buildables, int while( *p != '\0' ) { + if( i == buildablesSize - 1 ) + break; + //skip to first , or EOS while( *p != ',' && *p != '\0' ) p++; |