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