--- deliantra/server/socket/item.c 2006/06/11 20:43:35 1.3 +++ deliantra/server/socket/item.c 2006/06/11 20:45:05 1.4 @@ -659,12 +659,11 @@ sint16 x,y; mapstruct *m; - - if (out_of_map(op->map, op->x+dx, op->y+dy)) return; - x = op->x + dx; y = op->y + dy; + if (out_of_map(op->map, x, y)) return; + m = get_map_from_coord(op->map, &x, &y); if (!m) return;