summaryrefslogtreecommitdiff
path: root/src/map/unit.h
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-15 12:04:44 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-15 12:04:44 +0000
commitc30bb75ec50624429bff7b4106db4be0fda366d6 (patch)
tree6f306c5c794385ef22140b46483cdeee4cda809b /src/map/unit.h
parent4087efc58d048ff41d7e80e69928aa4f3e810274 (diff)
downloadhercules-c30bb75ec50624429bff7b4106db4be0fda366d6.tar.gz
hercules-c30bb75ec50624429bff7b4106db4be0fda366d6.tar.bz2
hercules-c30bb75ec50624429bff7b4106db4be0fda366d6.tar.xz
hercules-c30bb75ec50624429bff7b4106db4be0fda366d6.zip
Fixed quite a few dozen "comparison is always true due to limited range of data type" warning with gcc on --enable-64bit mode.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15861 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.h')
-rw-r--r--src/map/unit.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/unit.h b/src/map/unit.h
index f7b072739..6a0bf26f6 100644
--- a/src/map/unit.h
+++ b/src/map/unit.h
@@ -46,8 +46,13 @@ struct unit_data {
};
struct view_data {
+#ifdef __64BIT__
+ unsigned int class_;
+#endif
unsigned short
+#ifndef __64BIT__
class_,
+#endif
weapon,
shield, //Or left-hand weapon.
robe,