summaryrefslogtreecommitdiff
path: root/src/map/npc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/npc.cpp')
-rw-r--r--src/map/npc.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/npc.cpp b/src/map/npc.cpp
index 37f3f62..68b5ad7 100644
--- a/src/map/npc.cpp
+++ b/src/map/npc.cpp
@@ -1800,5 +1800,11 @@ int do_init_npc(void)
PRINTF("\rNPCs Loaded: %d [Warps:%d Shops:%d Scripts:%d Mobs:%d] %20s\n",
npc_id - START_NPC_NUM, npc_warp, npc_shop, npc_script, npc_mob, "");
+ if (script_errors)
+ {
+ PRINTF("Cowardly refusing to continue after %d errors\n", script_errors);
+ abort();
+ }
+
return 0;
}