From 27c0fdf5c96e9195a82355d516b19c77fe8443a4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 29 May 2019 09:47:05 -0300 Subject: Fix the bugs related to Tulimshar siege. Sorry. --- npc/functions/siege.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'npc/functions') diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt index f6aac1e16..8d9d3cab6 100644 --- a/npc/functions/siege.txt +++ b/npc/functions/siege.txt @@ -153,6 +153,9 @@ function script siege_setup { .@m$=getarg(0); // Save old map zone + if (getmapinfo(MAPINFO_ID, .@m$) < 1) { + return Exception("SIEGE ERROR, INVALID MAP ID: "+.@m$, RB_ISFATAL|RB_DEBUGMES|RB_IRCBROADCAST|RB_GLOBALANNOUNCE); + } //$@MZONE$[getmapinfo(MAPINFO_ID, .@m$)]=getmapinfo(MAPINFO_ZONE, .@m$); // Apply changes -- cgit v1.2.3-60-g2f50