summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5915144)
raw | patch | inline | side by side (parent: 5915144)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Mon, 5 Feb 2018 00:51:45 +0000 (02:51 +0200) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Mon, 5 Feb 2018 00:52:28 +0000 (02:52 +0200) |
src/game/g_items.pas | patch | blob | history |
diff --git a/src/game/g_items.pas b/src/game/g_items.pas
index 028f9d0a86024e5c6b8343c6f45e98429228467c..64ffe3e62697d8ac162de5f236987561ca2068c5 100644 (file)
--- a/src/game/g_items.pas
+++ b/src/game/g_items.pas
it: PItem;
trig: Integer;
begin
- if not g_Items_ValidId(ID) then raise Exception.Create('g_Items_Remove: invalid item id');
+ if not g_Items_ValidId(ID) then
+ begin
+ //raise Exception.Create('g_Items_Remove: invalid item id');
+ writeln('g_Items_Remove: invalid item id: ', ID);
+ exit;
+ end;
it := @ggItems[ID];
if (it.arrIdx <> Integer(ID)) then raise Exception.Create('g_Items_Remove: arrIdx desync');