From 0732f55931524c1a2cf703805d61e955c4afea29 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 26 Feb 2014 15:10:11 -0300 Subject: Improved mapindex_name2id errors for scripts NPC Error is now printed as well as the original message as proposed by Emistry in http://hercules.ws/board/topic/1864-mapindex-name2id-display-which-npc-caused-this/ Special Thanks to Haru! Signed-off-by: shennetsind --- src/map/script.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/map/script.h') diff --git a/src/map/script.h b/src/map/script.h index 5ce77799a..7ab7f17c6 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -696,6 +696,7 @@ struct script_interface { unsigned int *(*array_cpy_list) (struct script_array *sa); /* */ void (*hardcoded_constants) (void); + unsigned short (*mapindexname2id) (struct script_state *st, const char* name); }; struct script_interface *script; -- cgit v1.2.3-60-g2f50