Editor Fixes (by Buggler)

- Fixed unable to delete items in Merc Inventory Display screen
- Added keyboard hotkey item scrolling in Merc Inventory Selection screen

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5965 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2013-03-30 12:53:22 +00:00
parent 1435e4a679
commit 1aea5efd1b
2 changed files with 16 additions and 8 deletions
+8
View File
@@ -7677,12 +7677,20 @@ BOOLEAN CreateItem( UINT16 usItem, INT16 bStatus, OBJECTTYPE * pObj )
if ( GetItemFromRandomItem(usItem, &newitemfromrandom) )
usItem = newitemfromrandom;
#ifdef JA2EDITOR
// Buggler: usItem == 0 is technically an item too, so need to run code to delete existing item in editor/merc inventory mode
#else //non-editor version
if (usItem == 0)
{
DebugBreakpoint();
return( FALSE );
}
#endif
if (Item[ usItem ].usItemClass == IC_GUN)
{
fRet = CreateGun( usItem, bStatus, pObj );