diff IconFrameTable.cpp @ 2416:8b04ba723324

misstake in LoadSound
author Ritor1
date Mon, 21 Jul 2014 17:37:03 +0600
parents f4af3b203f65
children
line wrap: on
line diff
--- a/IconFrameTable.cpp	Sun Jul 20 22:38:31 2014 +0600
+++ b/IconFrameTable.cpp	Mon Jul 21 17:37:03 2014 +0600
@@ -40,18 +40,13 @@
 //----- (00494FBF) --------------------------------------------------------
 void IconFrameTable::InitializeAnimation(unsigned int uIconID)
 {
-  unsigned int v3; // edi@3
-  const char *i; // eax@3
-
-  if ( (signed int)uIconID <= (signed int)this->uNumIcons && (uIconID & 0x80000000u) == 0 )
+  if ( uIconID && (signed int)uIconID <= (signed int)this->uNumIcons )
   {
-    v3 = uIconID;
-    for ( i = this->pIcons[uIconID].pTextureName; ; i = this->pIcons[v3].pTextureName )
+    for ( uint  i = uIconID; ; ++i )
     {
-      this->pIcons[v3].uTextureID = pIcons_LOD->LoadTexture(i, TEXTURE_16BIT_PALETTE);
-      if ( !(this->pIcons[v3].uFlags & 1) )
+      this->pIcons[i].uTextureID = pIcons_LOD->LoadTexture(this->pIcons[i].pTextureName, TEXTURE_16BIT_PALETTE);
+      if ( !(this->pIcons[i].uFlags & 1) )
         break;
-      ++v3;
     }
   }
 }