summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-24 23:52:33 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-24 23:52:33 +0300
commite8bcb1e0e42a522936b35ff8cb316a446e49b6f6 (patch)
tree7ae91df92cda84c6cc0eec8f79f855dbfd07b7e0 /src/map
parentfd1125553f27fbeb8a1e1846eb2b6c95fa62b80b (diff)
downloadhercules-e8bcb1e0e42a522936b35ff8cb316a446e49b6f6.tar.gz
hercules-e8bcb1e0e42a522936b35ff8cb316a446e49b6f6.tar.bz2
hercules-e8bcb1e0e42a522936b35ff8cb316a446e49b6f6.tar.xz
hercules-e8bcb1e0e42a522936b35ff8cb316a446e49b6f6.zip
Fix script command checkcell without player attached.
Was broken in previous commits.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/script.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 4e5ed7fdd..c59a4db45 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -16841,14 +16841,13 @@ BUILDIN(checkcell) {
int16 x = script_getnum(st,3);
int16 y = script_getnum(st,4);
cell_chk type = (cell_chk)script_getnum(st,5);
- TBL_PC* sd = script->rid2sd(st);
if ( m == -1 ) {
ShowWarning("checkcell: Attempted to run on unexsitent map '%s', type %d, x/y %d,%d\n",script_getstr(st,2),type,x,y);
return true;
}
- script_pushint(st, map->getcell(m, &sd->bl, x, y, type));
+ script_pushint(st, map->getcell(m, NULL, x, y, type));
return true;
}