diff --git a/src/game/g_basic.pas b/src/game/g_basic.pas
index 626596b01878e2154c7ac0caf6ff9b8f275b97b5..98cebcce846067023ff07b3fa558f1c9ddba0797 100644 (file)
--- a/src/game/g_basic.pas
+++ b/src/game/g_basic.pas
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;
UID_MONSTER:
begin
- m := g_Monsters_Get(UID);
+ m := g_Monsters_ByUID(UID);
if m = nil then Exit;
if not m.Live then Exit;