summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorhemagx <hemagx2@gmail.com>2015-12-14 02:31:51 +0200
committerhemagx <hemagx2@gmail.com>2015-12-14 02:31:51 +0200
commitddab27691b66fa40dd97231b59f576b73c03cd39 (patch)
tree8864e560ef82d408bad562e782755f10e93161e1 /src/map
parentf975f0a55ca930fd0f95a6209bea479ac9bc3a5d (diff)
downloadhercules-ddab27691b66fa40dd97231b59f576b73c03cd39.tar.gz
hercules-ddab27691b66fa40dd97231b59f576b73c03cd39.tar.bz2
hercules-ddab27691b66fa40dd97231b59f576b73c03cd39.tar.xz
hercules-ddab27691b66fa40dd97231b59f576b73c03cd39.zip
follow up f975f0a55ca930fd0f95a6209bea479ac9bc3a5d
Diffstat (limited to 'src/map')
-rw-r--r--src/map/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index a0af3a04b..2f112b149 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -1167,7 +1167,7 @@ bool pc_authok(struct map_session_data *sd, int login_id2, time_t expiration_tim
clif->authfail_fd(sd->fd, 0);
return false;
}
- } else if (map->getcell(sd->status.last_point.map, &sd->bl, sd->status.last_point.x, sd->status.last_point.y, CELL_CHKNOPASS)) {
+ } else if (map->getcell(map->mapindex2mapid(sd->status.last_point.map), &sd->bl, sd->status.last_point.x, sd->status.last_point.y, CELL_CHKNOPASS)) {
//warp player stuck in invaild cell
pc->setpos(sd,sd->status.last_point.map,0,0,CLR_OUTSIGHT);
}