Skip to content
Permalink
Browse files

Call CM_ClearMap in one instance where the same operations are performed

  • Loading branch information...
slipher committed Jul 5, 2019
1 parent c9df029 commit 403d079f56a0faa210655dd997d9ee26bebc8495
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/common/cm/cm_load.cpp
@@ -918,9 +918,8 @@ void CM_LoadMap(Str::StringRef name)
}

// free old stuff
CM_FreeAll();
memset( &cm, 0, sizeof( cm ) );
CM_ClearLevelPatches();
CM_FreeAll();
CM_ClearMap();

if ( !name[ 0 ] )
{

0 comments on commit 403d079

Please sign in to comment.
You can’t perform that action at this time.