summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-04-19 18:17:09 +0200
committerHaru <haru@dotalux.com>2014-04-19 18:17:09 +0200
commit2eda4c20fec88ebefe0fbf74c2db33b0c83890e9 (patch)
tree717d69769e13ccafd33a1280f382f952807c0bcb /src/map/pc.c
parent47e1e71c9ba917f288f96ff64f4533628188b921 (diff)
downloadhercules-2eda4c20fec88ebefe0fbf74c2db33b0c83890e9.tar.gz
hercules-2eda4c20fec88ebefe0fbf74c2db33b0c83890e9.tar.bz2
hercules-2eda4c20fec88ebefe0fbf74c2db33b0c83890e9.tar.xz
hercules-2eda4c20fec88ebefe0fbf74c2db33b0c83890e9.zip
Corrected some issues in 69ca0aa and 446ce4a
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 9ee65d2d2..c6bab4cfc 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -7140,9 +7140,9 @@ int pc_dead(struct map_session_data *sd,struct block_list *src) {
}
// Remove autotrade to prevent autotrading from save point
- if( sd->state.standalone || sd->state.autotrade
- && (map->list[sd->bl.m].flag.pvp || map->list[sd->bl.m].flag.gvg)
- ) {
+ if( (sd->state.standalone || sd->state.autotrade)
+ && (map->list[sd->bl.m].flag.pvp || map->list[sd->bl.m].flag.gvg)
+ ) {
sd->state.autotrade = 0;
sd->state.standalone = 0;
pc->autotrade_update(sd,PAUC_REMOVE);