DEADSOFTWARE

removed unnecessary indirection in hash table
[d2df-sdl.git] / src / game / g_basic.pas
index 626596b01878e2154c7ac0caf6ff9b8f275b97b5..98cebcce846067023ff07b3fa558f1c9ddba0797 100644 (file)
@@ -226,7 +226,7 @@ begin
       while true do
       begin
         result := UID_MAX_PLAYER+$1+Random(UID_MAX_MONSTER-UID_MAX_GAME-UID_MAX_PLAYER+$1);
-        if (g_Monsters_Get(result) = nil) then break;
+        if (g_Monsters_ByUID(result) = nil) then break;
       end;
     end;
   end;
@@ -947,7 +947,7 @@ begin
 
     UID_MONSTER:
     begin
-      m := g_Monsters_Get(UID);
+      m := g_Monsters_ByUID(UID);
       if m = nil then Exit;
       if not m.Live then Exit;