summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-08-09 11:02:44 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-08-09 11:02:44 +0000
commitc10d6dd38c9fff3ea0ec335465b7f632d5b086db (patch)
tree6c5c6ce4e7392a8a0645dc132d7f21f325b0cb99 /src/map/script.c
parent8422b98a28e183d714d721a0b201391e183fb546 (diff)
downloadhercules-c10d6dd38c9fff3ea0ec335465b7f632d5b086db.tar.gz
hercules-c10d6dd38c9fff3ea0ec335465b7f632d5b086db.tar.bz2
hercules-c10d6dd38c9fff3ea0ec335465b7f632d5b086db.tar.xz
hercules-c10d6dd38c9fff3ea0ec335465b7f632d5b086db.zip
The new functions now clear junk from the output buffer, this simplifies the code a bit.
Added a TODO for one emblem loading problem/crash. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10969 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 8412d0019..a08d06466 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -9650,10 +9650,11 @@ BUILDIN_FUNC(getcastledata)
BUILDIN_FUNC(setcastledata)
{
- int index=script_getnum(st,3);
- int value=script_getnum(st,4);
+ const char* mapname = mapindex_getmapname(script_getstr(st,2),NULL);
+ int index = script_getnum(st,3);
+ int value = script_getnum(st,4);
- struct guild_castle* gc = guild_mapname2gc( mapindex_getmapname(script_getstr(st,2),NULL) );
+ struct guild_castle* gc = guild_mapname2gc(mapname);
if(gc) {
// Save Data byself First