diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-02-15 05:22:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-02-15 05:22:27 +0300 |
commit | 60ee1172f5ae241f87a4db07f46023272592fb30 (patch) | |
tree | 6643eb8d865a3b1e288b362849ac6aa5d3a46fdd /npc | |
parent | 774493360df4e8ef2563a06ead353589feea92f0 (diff) | |
download | serverdata-60ee1172f5ae241f87a4db07f46023272592fb30.tar.gz serverdata-60ee1172f5ae241f87a4db07f46023272592fb30.tar.bz2 serverdata-60ee1172f5ae241f87a4db07f46023272592fb30.tar.xz serverdata-60ee1172f5ae241f87a4db07f46023272592fb30.zip |
Add check for existing instance in npc1 before create new instance.s20180215
Diffstat (limited to 'npc')
-rw-r--r-- | npc/test/npc1.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/test/npc1.txt b/npc/test/npc1.txt index d3ea4661..f6777f48 100644 --- a/npc/test/npc1.txt +++ b/npc/test/npc1.txt @@ -535,7 +535,7 @@ L_Start: switch (select("create", "warp", "info", "warp back", "delete", "back")) { case 1: - if (.instid >= 0) + if (.instid >= 0 && isinstance(.instid)) { mes "Error: test instance already created"; break; |