diff mm7_4.cpp @ 86:ec84db4c8f9d

4.01.13
author Ritor1
date Mon, 04 Feb 2013 09:17:35 +0600
parents 653fdf29c654
children 170259c8c71f
line wrap: on
line diff
--- a/mm7_4.cpp	Tue Jan 29 10:03:07 2013 +0600
+++ b/mm7_4.cpp	Mon Feb 04 09:17:35 2013 +0600
@@ -1709,13 +1709,18 @@
 //----- (00487E3B) --------------------------------------------------------
 TileDesc *TileTable::GetTileById(unsigned int uTileID)
 {
-  TileDesc *result; // eax@3
+  /*TileDesc *result; // eax@3
 
   if ( (uTileID & 0x80000000u) != 0 || (signed int)uTileID > (signed int)(this->uNumTiles - 1) )
     result = this->pTiles;
   else
     result = &this->pTiles[uTileID];
-  return result;
+  return result;*/
+
+ if (uTileID < 0 || uTileID > this->uNumTiles - 1)
+   return this->pTiles;
+ else
+   return &this->pTiles[uTileID];
 }
 
 //----- (00487E58) --------------------------------------------------------