summaryrefslogtreecommitdiff
path: root/src/map/unit.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-12-02 11:54:36 +0100
committerHaru <haru@dotalux.com>2015-12-02 11:55:16 +0100
commit300668dce8699accfb3e8cbce6db55b937230bb7 (patch)
tree5e9f28572c21e4dfe0afc8b43640109ac4db6337 /src/map/unit.h
parent9be1d84752ba2ed733ae29d68304f5825cf29162 (diff)
downloadhercules-300668dce8699accfb3e8cbce6db55b937230bb7.tar.gz
hercules-300668dce8699accfb3e8cbce6db55b937230bb7.tar.bz2
hercules-300668dce8699accfb3e8cbce6db55b937230bb7.tar.xz
hercules-300668dce8699accfb3e8cbce6db55b937230bb7.zip
Fixed compile errors on very old PACKETVERs
- Fixes #903 and other similar problems Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/unit.h')
-rw-r--r--src/map/unit.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/map/unit.h b/src/map/unit.h
index 0d970ca16..0f7a1aec5 100644
--- a/src/map/unit.h
+++ b/src/map/unit.h
@@ -65,13 +65,11 @@ struct unit_data {
struct view_data {
#ifdef __64BIT__
- unsigned int class_;
-#endif
- unsigned short
-#ifndef __64BIT__
- class_,
-#endif
- weapon,
+ uint32 class_; // FIXME: This shouldn't really depend on the architecture.
+#else // not __64BIT__
+ uint16 class_;
+#endif // __64BIT__
+ uint16 weapon,
shield, //Or left-hand weapon.
robe,
head_top,