diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-07-12 15:27:39 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-07-12 15:27:39 +0000 |
commit | 77a7d0656299fa84d1229af4f852fe2a52e567bd (patch) | |
tree | 09134abd8c40e27c88895ed95f9ae7d574c8787e /src/map/status.c | |
parent | 51880359b5691632c2f668b188f5837b55f40fe5 (diff) | |
download | hercules-77a7d0656299fa84d1229af4f852fe2a52e567bd.tar.gz hercules-77a7d0656299fa84d1229af4f852fe2a52e567bd.tar.bz2 hercules-77a7d0656299fa84d1229af4f852fe2a52e567bd.tar.xz hercules-77a7d0656299fa84d1229af4f852fe2a52e567bd.zip |
Fixed "comparison of unsigned expression < 0 is always false" warning.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16412 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/status.c b/src/map/status.c index 5bd894336..1a591e8e5 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -10600,9 +10600,9 @@ static int status_natural_heal_timer(int tid, unsigned int tick, int id, intptr_ * @param refine The target refine level * @return The chance to refine the item, in percent (0~100) **/ -int status_get_refine_chance(enum refine_type wlv, int refine) -{ - if (wlv < 0 || wlv > REFINE_TYPE_MAX || refine < 0 || refine >= MAX_REFINE) +int status_get_refine_chance(enum refine_type wlv, int refine) { + + if ( refine < 0 || refine >= MAX_REFINE) return 0; return refine_info[wlv].chance[refine]; |