Fix: When talking to a shopkeeper the game could crash with an assertion in Shopkeeper Interface.cpp line 990 because the temp vector wasn't initialized properly.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8000 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
silversurfer
2015-11-03 12:34:31 +00:00
parent a3806919ad
commit 0ff8256c40
+4
View File
@@ -986,6 +986,10 @@ BOOLEAN EnterShopKeeperInterface()
gfExitSKIDueToMessageBox = FALSE;
}
// silversurfer: added this to prevent random crashes when the temp vector wasn't initialized properly.
// This is called in InitializeShopKeeper() a few lines below anyway so it shouldn't hurt here.
gpTempDealersInventory.clear();
//Check to make sure the inventory is null ( should always be null if we are just coming in to the SKI )
Assert( gpTempDealersInventory.empty() == true );