Commit 1481e336 authored by IceYGO's avatar IceYGO

Fix illegal enum forward declaration of effect_flag and effect_flag2

Specifiying the size is mandatory. Fixes the compilation on GCC (debian).
parent 2ef064f9
...@@ -24,8 +24,8 @@ class effect; ...@@ -24,8 +24,8 @@ class effect;
struct tevent; struct tevent;
struct effect_set; struct effect_set;
struct effect_set_v; struct effect_set_v;
enum effect_flag; enum effect_flag : uint64;
enum effect_flag2; enum effect_flag2 : uint64;
class effect { class effect {
public: public:
...@@ -141,7 +141,7 @@ public: ...@@ -141,7 +141,7 @@ public:
#define EFFECT_TYPE_CONTINUOUS 0x0800 // #define EFFECT_TYPE_CONTINUOUS 0x0800 //
//========== Flags ========== //========== Flags ==========
enum effect_flag { enum effect_flag : uint64 {
EFFECT_FLAG_INITIAL = 0x0001, EFFECT_FLAG_INITIAL = 0x0001,
EFFECT_FLAG_FUNC_VALUE = 0x0002, EFFECT_FLAG_FUNC_VALUE = 0x0002,
EFFECT_FLAG_COUNT_LIMIT = 0x0004, EFFECT_FLAG_COUNT_LIMIT = 0x0004,
...@@ -175,7 +175,7 @@ enum effect_flag { ...@@ -175,7 +175,7 @@ enum effect_flag {
EFFECT_FLAG_CVAL_CHECK = 0x40000000, EFFECT_FLAG_CVAL_CHECK = 0x40000000,
EFFECT_FLAG_IMMEDIATELY_APPLY = 0x80000000, EFFECT_FLAG_IMMEDIATELY_APPLY = 0x80000000,
}; };
enum effect_flag2 { enum effect_flag2 : uint64 {
EFFECT_FLAG2_NAGA = 0x0001, EFFECT_FLAG2_NAGA = 0x0001,
EFFECT_FLAG2_COF = 0x0002, EFFECT_FLAG2_COF = 0x0002,
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment