summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 10c770e)
raw | patch | inline | side by side (parent: 10c770e)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Sun, 20 Aug 2017 06:17:12 +0000 (09:17 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Sun, 20 Aug 2017 07:47:56 +0000 (10:47 +0300) |
src/game/g_monsters.pas | patch | blob | history |
index 9f395fdde5dc474ab1ef27649f64d3b6ea88eaef..1f1e71183c52b302e6b3f33927bc405c799506c8 100644 (file)
--- a/src/game/g_monsters.pas
+++ b/src/game/g_monsters.pas
{$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