summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--world/map/npc/items/cryptitem.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/world/map/npc/items/cryptitem.txt b/world/map/npc/items/cryptitem.txt
index e45ebaad..c0b489d9 100644
--- a/world/map/npc/items/cryptitem.txt
+++ b/world/map/npc/items/cryptitem.txt
@@ -9,9 +9,13 @@ function|script|CryptItem
L_Loop:
if(@crypt_maps$[@loop] == getmap()) goto L_Return;
set @loop, @loop + 1;
- if(@loop == getarraysize(@crypt_maps$)) end;
+ if(@loop == getarraysize(@crypt_maps$)) goto L_Remove;
goto L_Loop;
+L_Remove:
+ callfunc "UnequipLater";
+ goto L_Return;
+
L_Return:
return;
}