X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_basic.pas;h=98cebcce846067023ff07b3fa558f1c9ddba0797;hb=c3a9113817b4e18cb5687a11b057161e63040e06;hp=626596b01878e2154c7ac0caf6ff9b8f275b97b5;hpb=829537fc7b2b29baaab7287e54fba2cdd8d00b5c;p=d2df-sdl.git diff --git a/src/game/g_basic.pas b/src/game/g_basic.pas index 626596b..98cebcc 100644 --- a/src/game/g_basic.pas +++ b/src/game/g_basic.pas @@ -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;