From f94190251bc199582d819fefa448b32a662a297a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 24 Sep 2015 14:33:37 +0300 Subject: Add bl parameter to getcell functions. --- src/map/pet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/pet.c') diff --git a/src/map/pet.c b/src/map/pet.c index 81a61459f..d2bb96ef5 100644 --- a/src/map/pet.c +++ b/src/map/pet.c @@ -795,7 +795,7 @@ int pet_randomwalk(struct pet_data *pd, int64 tick) int r=rnd(); int x=pd->bl.x+r%(d*2+1)-d; int y=pd->bl.y+r/(d*2+1)%(d*2+1)-d; - if(map->getcell(pd->bl.m,x,y,CELL_CHKPASS) && unit->walktoxy(&pd->bl,x,y,0)) { + if(map->getcell (pd->bl.m, &pd->bl, x, y, CELL_CHKPASS) && unit->walktoxy(&pd->bl, x, y, 0)) { pd->move_fail_count=0; break; } -- cgit v1.2.3-70-g09d2