summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-08-22 17:49:11 -0300
committershennetsind <ind@henn.et>2013-08-22 17:49:11 -0300
commit04139592739a69aafe6cffb0ec52f65d50efb1fa (patch)
tree99ef119284f720891fbca448cef18e61d7caa1a4 /src/map/skill.c
parentcfa452c483ceff012578f25b57da1bf7ac10051c (diff)
downloadhercules-04139592739a69aafe6cffb0ec52f65d50efb1fa.tar.gz
hercules-04139592739a69aafe6cffb0ec52f65d50efb1fa.tar.bz2
hercules-04139592739a69aafe6cffb0ec52f65d50efb1fa.tar.xz
hercules-04139592739a69aafe6cffb0ec52f65d50efb1fa.zip
Fixed MSVC warnings on 7f9f6e1b84061a7d393debf37395c8b4a2667db1
Special Thanks to KeiKun for bringing them to me. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 9befc1d32..a4070e92f 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -2793,7 +2793,7 @@ int skill_attack (int attack_type, struct block_list* src, struct block_list *ds
iMap->freeblock_unlock();
- return damage;
+ return (int)cap_value(damage,INT_MIN,INT_MAX);
}
/*==========================================
@@ -12140,13 +12140,13 @@ int skill_unit_ondamaged (struct skill_unit *src, struct block_list *bl, int64 d
case UNT_ICEWALL:
case UNT_REVERBERATION:
case UNT_WALLOFTHORN:
- src->val1-=damage;
+ src->val1 -= (int)cap_value(damage,INT_MIN,INT_MAX);
break;
default:
damage = 0;
break;
}
- return damage;
+ return (int)cap_value(damage,INT_MIN,INT_MAX);
}
/*==========================================