summaryrefslogtreecommitdiff
path: root/world/map/npc
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc')
-rw-r--r--world/map/npc/functions/ghost.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/world/map/npc/functions/ghost.txt b/world/map/npc/functions/ghost.txt
index 09a10680..921b8b79 100644
--- a/world/map/npc/functions/ghost.txt
+++ b/world/map/npc/functions/ghost.txt
@@ -1,7 +1,7 @@
function|script|SpawnGhost
{
if ($GHOSTS_DISABLED)
- return;
+ goto L_Return;
if (BaseLevel >= 40 &&
(getmap() == "026-1" ||
@@ -30,4 +30,7 @@ L_Spawn:
specialeffect2 39;
monster getmap(), .@x, .@y, strcharinfo(0), 1136, 1, "~GH~" + getcharid(0);
return;
+
+L_Return:
+ return;
}