summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 259ab7073..55771c6e3 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -9147,6 +9147,8 @@ BUILDIN_FUNC(getcastledata)
struct guild_castle *gc;
int i,j;
+ map_normalize_name(mapname);
+
if( st->end>st->start+4 && index==0){
for(i=0,j=-1;i<MAX_GUILDCASTLE;i++)
if( (gc=guild_castle_search(i)) != NULL &&
@@ -9210,6 +9212,8 @@ BUILDIN_FUNC(setcastledata)
struct guild_castle *gc;
int i;
+ map_normalize_name(mapname);
+
for(i=0;i<MAX_GUILDCASTLE;i++){
if( (gc=guild_castle_search(i)) != NULL ){
if(strcmp(mapname,gc->map_name)==0){