From 300668dce8699accfb3e8cbce6db55b937230bb7 Mon Sep 17 00:00:00 2001 From: Haru Date: Wed, 2 Dec 2015 11:54:36 +0100 Subject: Fixed compile errors on very old PACKETVERs - Fixes #903 and other similar problems Signed-off-by: Haru --- src/map/unit.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/map/unit.h') 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, -- cgit v1.2.3-60-g2f50