diff --git a/GameSettings.cpp b/GameSettings.cpp index ea9edfac..48b9a6ab 100644 --- a/GameSettings.cpp +++ b/GameSettings.cpp @@ -35,6 +35,7 @@ #include "Game Clock.h" #include "Init.h" #include "displaycover.h" + #include "InterfaceItemImages.h" #endif #include "KeyMap.h" @@ -678,7 +679,7 @@ void LoadGameExternalOptions() gGameExternalOptions.fUseXmlTileSets = iniReader.ReadBoolean("Data File Settings","USE_XML_TILESETS", FALSE); //Madd: set number of pItem files to be used - gGameExternalOptions.ubNumPItems = iniReader.ReadInteger("Data File Settings","NUM_P_ITEMS", 3, 3, 10); + gGameExternalOptions.ubNumPItems = iniReader.ReadInteger("Data File Settings","NUM_P_ITEMS", 3, 3, MAX_PITEMS); //################# Merc Recruitment Settings ################# diff --git a/TileEngine/Interactive Tiles.cpp b/TileEngine/Interactive Tiles.cpp index 20f0c9fb..ed5894d3 100644 --- a/TileEngine/Interactive Tiles.cpp +++ b/TileEngine/Interactive Tiles.cpp @@ -203,7 +203,6 @@ BOOLEAN SoldierHandleInteractiveObject( SOLDIERTYPE *pSoldier ) UINT16 usStructureID; INT32 sGridNo; - sGridNo = pSoldier->aiData.sPendingActionData2; usStructureID = (UINT16)pSoldier->aiData.uiPendingActionData1;