summaryrefslogtreecommitdiff
path: root/src/map/trade.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-20 16:21:37 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-20 16:21:37 +0000
commitb5bcd3c54bfe30e7602a92d4b39ee15973f3c46f (patch)
treefb12351bc05dea4dea9158a427724b8b89a467c0 /src/map/trade.c
parent85db367d556b31b432b2e3b2c909cca14d6248f2 (diff)
downloadhercules-b5bcd3c54bfe30e7602a92d4b39ee15973f3c46f.tar.gz
hercules-b5bcd3c54bfe30e7602a92d4b39ee15973f3c46f.tar.bz2
hercules-b5bcd3c54bfe30e7602a92d4b39ee15973f3c46f.tar.xz
hercules-b5bcd3c54bfe30e7602a92d4b39ee15973f3c46f.zip
Changed pc_can_give_items() to use standard boolean logic instead of the inverted 1/0 one (bugreport:396)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12220 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/trade.c')
-rw-r--r--src/map/trade.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/trade.c b/src/map/trade.c
index fa092c49c..5c063621d 100644
--- a/src/map/trade.c
+++ b/src/map/trade.c
@@ -61,7 +61,7 @@ void trade_traderequest(struct map_session_data *sd, struct map_session_data *ta
}
level = pc_isGM(sd);
- if ( pc_can_give_items(level) || pc_can_give_items(pc_isGM(target_sd)) ) //check if both GMs are allowed to trade
+ if ( !pc_can_give_items(level) || !pc_can_give_items(pc_isGM(target_sd)) ) //check if both GMs are allowed to trade
{
clif_displaymessage(sd->fd, msg_txt(246));
clif_tradestart(sd, 2); // GM is not allowed to trade