From e8bcb1e0e42a522936b35ff8cb316a446e49b6f6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 24 Sep 2015 23:52:33 +0300 Subject: Fix script command checkcell without player attached. Was broken in previous commits. --- src/map/script.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2