From acdde91ef9675a44ecd9a02d7f543814a75f0093 Mon Sep 17 00:00:00 2001 From: gumi Date: Sat, 24 Jun 2017 09:12:37 -0400 Subject: allow channelmes to be called without attached rid --- src/map/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map') 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); -- cgit v1.2.3-70-g09d2