summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnnieRuru <jeankof@ymail.com>2015-11-05 06:22:20 +0800
committerHaru <haru@dotalux.com>2015-11-14 21:05:35 +0100
commit5869aadef89270cf38bee53f5ce3959142dde10a (patch)
tree90307ad880afd23f017fb52b7d479dc0eab94db0 /src
parenta3e041b4c425411ff38f4dfd6fd4aa1f6bca457c (diff)
downloadhercules-5869aadef89270cf38bee53f5ce3959142dde10a.tar.gz
hercules-5869aadef89270cf38bee53f5ce3959142dde10a.tar.bz2
hercules-5869aadef89270cf38bee53f5ce3959142dde10a.tar.xz
hercules-5869aadef89270cf38bee53f5ce3959142dde10a.zip
Fix @QMapChangeTo$ not usable when HQO_OnMapChange triggered
- also add documentation for it
Diffstat (limited to 'src')
-rw-r--r--src/map/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 0671bfb5e..d3b5498cc 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5529,7 +5529,7 @@ int pc_setpos(struct map_session_data* sd, unsigned short map_index, int x, int
for( i = 0; i < sd->queues_count; i++ ) {
struct script_queue *queue = script->queue(sd->queues[i]);
if (queue && queue->event_mapchange[0] != '\0') {
- pc->setregstr(sd, script->add_str("QMapChangeTo"), map->list[m].name);
+ pc->setregstr(sd, script->add_str("@QMapChangeTo$"), map->list[m].name);
npc->event(sd, queue->event_mapchange, 0);
}
}