From: Ketmar Dark Date: Sun, 20 Aug 2017 06:17:12 +0000 (+0300) Subject: monster tree cosmetix X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=2d607bc375126d0942aee16c8031903ab1ca7105;p=d2df-sdl.git monster tree cosmetix --- diff --git a/src/game/g_monsters.pas b/src/game/g_monsters.pas index 9f395fd..1f1e711 100644 --- a/src/game/g_monsters.pas +++ b/src/game/g_monsters.pas @@ -1932,7 +1932,7 @@ begin {$IF DEFINED(D2F_DEBUG)} e_WriteLog(Format('monster #%d(%u): removed from tree; nodeid=%d', [arrIdx, UID, treeNode]), MSG_NOTIFY); {$ENDIF} - monsTree.removeObject(treeNode); + if monsTree.isValidId(treeNode) then monsTree.removeObject(treeNode); end; if (arrIdx <> -1) then