Bugfix: CTD when try to pickup items from dead body. (Tiledef.cpp check CHECKF( usIndex < NUMBEROFTILES ); added into GetTileType and GetWallOrientation)

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@30 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
lalien
2006-04-20 01:19:36 +00:00
parent 7286d2badd
commit 6dec819c46
+2
View File
@@ -1046,6 +1046,7 @@ BOOLEAN GetTileType( UINT16 usIndex, UINT32 *puiType )
TILE_ELEMENT TileElem;
CHECKF( usIndex != NO_TILE );
CHECKF( usIndex < NUMBEROFTILES ); //lal bugfix
// Get tile element
TileElem = gTileDatabase[ usIndex ];
@@ -1197,6 +1198,7 @@ BOOLEAN GetWallOrientation( UINT16 usIndex, UINT16 *pusWallOrientation )
TILE_ELEMENT TileElem;
CHECKF( usIndex != NO_TILE );
CHECKF( usIndex < NUMBEROFTILES ); //lal bugfix
// Get tile element
TileElem = gTileDatabase[ usIndex ];