summaryrefslogtreecommitdiff
path: root/npc/005-5
diff options
context:
space:
mode:
Diffstat (limited to 'npc/005-5')
-rw-r--r--npc/005-5/nylo.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/npc/005-5/nylo.txt b/npc/005-5/nylo.txt
index a27bd58f4..163e1736f 100644
--- a/npc/005-5/nylo.txt
+++ b/npc/005-5/nylo.txt
@@ -119,7 +119,10 @@ L_Main:
// Create the Marggo
.@INSTID = instance_create("MRGX@"+(.@ID), 0, IOT_NONE);
- .@instanceMapName$ = instance_attachmap("005-1-1", .@INSTID, 0, .@MAP$);
+ if (@INSTID < 0)
+ .@instanceMapName$ = "";
+ else
+ .@instanceMapName$ = instance_attachmap("005-1-1", .@INSTID, 0, .@MAP$);
// Instance already exists
if (.@instanceMapName$ == "") {
mesn;