diff options
Diffstat (limited to 'src/map/battleground.c')
-rw-r--r-- | src/map/battleground.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/map/battleground.c b/src/map/battleground.c index 190f7886d..94a6f0626 100644 --- a/src/map/battleground.c +++ b/src/map/battleground.c @@ -860,13 +860,14 @@ void do_final_battleground(void) { db_destroy(bg->team_db); - for( i = 0; i < bg->arenas; i++ ) { - if( bg->arena[i] ) - aFree(bg->arena[i]); - } - if( bg->arena ) + { + for( i = 0; i < bg->arenas; i++ ) { + if( bg->arena[i] ) + aFree(bg->arena[i]); + } aFree(bg->arena); + } } void battleground_defaults(void) { bg = &bg_s; |