Fixed a CTD that occurs when closing sector inventory while the item description window is open.

Added a new ALLOW_SECTOR_DESCRIPTION_WINDOW flag to the ja2_options.ini that allows players to turn off the stack popup and item description functionality for the sector inventory panel.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2063 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
ChrisL
2008-04-21 21:04:35 +00:00
parent ece7ec25bb
commit b4b31cdb06
6 changed files with 44 additions and 21 deletions
+4
View File
@@ -6563,6 +6563,10 @@ void DeleteItemStackPopup( )
{
INT32 cnt;
//CHRISL: if neither item or sector stack popups are open, just return.
if(!gfInItemStackPopup && !gfInSectorStackPopup)
return;
//Remove
DeleteVideoObjectFromIndex( guiItemPopupBoxes );