mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
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:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user