summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2017-06-24 09:12:37 -0400
committergumi <mekolat@users.noreply.github.com>2017-06-24 09:27:00 -0400
commitacdde91ef9675a44ecd9a02d7f543814a75f0093 (patch)
tree27d157b929eeb5af106089ba8a2bf8246d2b5642 /src
parent2bf7d082116013cfdad031046f3ac0c932c3eb65 (diff)
downloadhercules-acdde91ef9675a44ecd9a02d7f543814a75f0093.tar.gz
hercules-acdde91ef9675a44ecd9a02d7f543814a75f0093.tar.bz2
hercules-acdde91ef9675a44ecd9a02d7f543814a75f0093.tar.xz
hercules-acdde91ef9675a44ecd9a02d7f543814a75f0093.zip
allow channelmes to be called without attached rid
Diffstat (limited to 'src')
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 5bdda8512..ea8b03450 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -23039,7 +23039,7 @@ BUILDIN(shopcount)
*/
BUILDIN(channelmes)
{
- struct map_session_data *sd = script->rid2sd(st);
+ struct map_session_data *sd = map->id2sd(st->rid);
const char *channelname = script_getstr(st, 2);
struct channel_data *chan = channel->search(channelname, sd);