summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2015-09-24 20:48:34 +0200
committerHaruna <haru@dotalux.com>2015-09-24 20:48:34 +0200
commitfd1125553f27fbeb8a1e1846eb2b6c95fa62b80b (patch)
tree57a4bb8c60320d1c434e590721db3edd3f173acf /src/map/clif.c
parentf988416ad966633e3c851bd09357efa21d6e827c (diff)
parent52df0af9dd41b0243df94b800b74a5db1c1dcfd6 (diff)
downloadhercules-fd1125553f27fbeb8a1e1846eb2b6c95fa62b80b.tar.gz
hercules-fd1125553f27fbeb8a1e1846eb2b6c95fa62b80b.tar.bz2
hercules-fd1125553f27fbeb8a1e1846eb2b6c95fa62b80b.tar.xz
hercules-fd1125553f27fbeb8a1e1846eb2b6c95fa62b80b.zip
Merge pull request #735 from 4144/getcellbl
Add bl parameter to getcell functions.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 55d7c11ba..ab5708fc8 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9560,7 +9560,7 @@ void clif_parse_LoadEndAck(int fd, struct map_session_data *sd) {
clif->guild_notice(sd, sd->guild);
// For automatic triggering of NPCs after map loading (so you don't need to walk 1 step first)
- if (map->getcell(sd->bl.m,sd->bl.x,sd->bl.y,CELL_CHKNPC))
+ if (map->getcell(sd->bl.m, &sd->bl, sd->bl.x, sd->bl.y, CELL_CHKNPC))
npc->touch_areanpc(sd,sd->bl.m,sd->bl.x,sd->bl.y);
else
npc->untouch_areanpc(sd, sd->bl.m, sd->bl.x, sd->bl.y);
@@ -12836,7 +12836,7 @@ void clif_parse_OpenVending(int fd, struct map_session_data* sd) {
clif->message (sd->fd, msg_sd(sd,276)); // "You can't open a shop on this map"
return;
}
- if( map->getcell(sd->bl.m,sd->bl.x,sd->bl.y,CELL_CHKNOVENDING) ) {
+ if (map->getcell(sd->bl.m, &sd->bl, sd->bl.x, sd->bl.y, CELL_CHKNOVENDING)) {
clif->message (sd->fd, msg_sd(sd,204)); // "You can't open a shop on this cell."
return;
}