mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
Bugfix for crash with empty sector inventory (by Moa)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6440 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -985,7 +985,11 @@ void SaveSeenAndUnseenItems( void )
|
||||
}
|
||||
}
|
||||
|
||||
//check whether memmory (loaded map) or file is used to save the items
|
||||
// no items to save but we need an iterator
|
||||
if ( worldItemsSaveList.size() == 0 )
|
||||
worldItemsSaveList.resize(1);
|
||||
|
||||
//check whether memory (loaded map) or file is used to save the items
|
||||
if( ( gWorldSectorX == sSelMapX ) && ( gWorldSectorY == sSelMapY ) && ( gbWorldSectorZ == ( INT8 ) ( iCurrentMapSectorZ ) ) )
|
||||
{
|
||||
//handle in existing function
|
||||
|
||||
Reference in New Issue
Block a user