diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-18 21:25:26 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-18 21:25:26 +0000 |
commit | 2bc59ef9db7a86d0c483e3848ead57d6d691e6a3 (patch) | |
tree | dfe7994053b5e2d0a1aad158ca23f0cc8e0bc533 /src/map/trade.c | |
parent | ea3c690441b4f4c6cea3fd556ac0618018be9a23 (diff) | |
download | hercules-2bc59ef9db7a86d0c483e3848ead57d6d691e6a3.tar.gz hercules-2bc59ef9db7a86d0c483e3848ead57d6d691e6a3.tar.bz2 hercules-2bc59ef9db7a86d0c483e3848ead57d6d691e6a3.tar.xz hercules-2bc59ef9db7a86d0c483e3848ead57d6d691e6a3.zip |
Fixed numerous /W4 warnings (and created more :)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11514 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/trade.c')
-rw-r--r-- | src/map/trade.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/trade.c b/src/map/trade.c index 0bf7e4432..eadc115a7 100644 --- a/src/map/trade.c +++ b/src/map/trade.c @@ -228,7 +228,8 @@ int trade_check(struct map_session_data *sd, struct map_session_data *tsd) struct item inventory[MAX_INVENTORY]; struct item inventory2[MAX_INVENTORY]; struct item_data *data; - int trade_i, i, amount, n; + int trade_i, i, n; + short amount; if(sd->state.finalsave || tsd->state.finalsave) return 0; //Item transferring fails @@ -312,7 +313,7 @@ int trade_check(struct map_session_data *sd, struct map_session_data *tsd) /*========================================== * Adds an item/qty to the trade window *------------------------------------------*/ -void trade_tradeadditem(struct map_session_data *sd, int index, int amount) +void trade_tradeadditem(struct map_session_data *sd, short index, short amount) { struct map_session_data *target_sd; struct item *item; |