From a0eec150a202785a058304d505bf5dcabf503c23 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 22 Aug 2019 18:01:25 -0300 Subject: Well, this sort of stuff may happen - instance is valid but is not what we're looking for --- npc/014-5/sagratha.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'npc/014-5') diff --git a/npc/014-5/sagratha.txt b/npc/014-5/sagratha.txt index a871ea7f5..2b13a8503 100644 --- a/npc/014-5/sagratha.txt +++ b/npc/014-5/sagratha.txt @@ -37,6 +37,13 @@ function script SaggyInstCheck { setq2 HurnscaldQuest_Sagratha, .@inst; } + // It broke + if (getmapinfo(MAPINFO_SIZE_X, .@mapn$) <= 0) { + setq2 HurnscaldQuest_Sagratha, 0; + // Infinite Loop? + return SaggyInstCheck(.@house); + } + if (.@house) { return .@mapn$; } else { -- cgit v1.2.3-60-g2f50