From 28fda30f68182b841413f69f7e63a25a09d1d009 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 29 May 2019 09:44:39 -0300 Subject: [Warning]: script:getelementofarray: index out of range (-1) Told ya. --- npc/functions/siege.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'npc/functions/siege.txt') diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt index 307274712..f6aac1e16 100644 --- a/npc/functions/siege.txt +++ b/npc/functions/siege.txt @@ -153,7 +153,7 @@ function script siege_setup { .@m$=getarg(0); // Save old map zone - $@MZONE$[getmapinfo(MAPINFO_ID, .@m$)]=getmapinfo(MAPINFO_ZONE, .@m$); + //$@MZONE$[getmapinfo(MAPINFO_ID, .@m$)]=getmapinfo(MAPINFO_ZONE, .@m$); // Apply changes addmapmask .@m$, MASK_MATTACK; @@ -200,7 +200,7 @@ function script siege_revert { //setmapflag(.@m$,mf_zone,$@MZONE$[getmapinfo(MAPINFO_ID, .@m$)]); setmapflag(.@m$,mf_zone,"Normal"); // Broken for some reason setmapflag(.@m$,mf_zone,"All"); - $@MZONE$[getmapinfo(MAPINFO_ID, .@m$)]=""; + //$@MZONE$[getmapinfo(MAPINFO_ID, .@m$)]=""; removemapmask .@m$, MASK_MATTACK; changemusic .@m$, "caketown.ogg"; // :> -- cgit v1.2.3-70-g09d2