1
0
Fork 0

Fix: [Script] Incorrect value for GOAL_INVALID (#10436)

* Fix: [Script] Incorrect value for GOAL_INVALID

* Cleanup: Remove unused static variable
pull/10386/head
SamuXarick 2023-02-01 22:35:51 +00:00 committed by GitHub
parent bf8b32d193
commit 1f194eb94e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -32,8 +32,7 @@ enum GoalType : byte {
GT_STORY_PAGE, ///< Destination is a story page GT_STORY_PAGE, ///< Destination is a story page
}; };
typedef uint32 GoalTypeID; ///< Contains either tile, industry ID, town ID or company ID (or INVALID_GOALTYPE) typedef uint32 GoalTypeID; ///< Contains either tile, industry ID, town ID, company ID, or story page ID
static const GoalTypeID INVALID_GOALTYPE = 0xFFFFFFFF; ///< Invalid/unknown index of GoalType
typedef uint16 GoalID; ///< ID of a goal typedef uint16 GoalID; ///< ID of a goal
struct Goal; struct Goal;

View File

@ -28,9 +28,9 @@ public:
/** /**
* The goal IDs. * The goal IDs.
*/ */
enum GoalID { enum GoalID : uint16 {
/* Note: these values represent part of the in-game GoalID enum */ /* Note: these values represent part of the in-game GoalID enum */
GOAL_INVALID = ::INVALID_GOALTYPE, ///< An invalid goal id. GOAL_INVALID = ::INVALID_GOAL, ///< An invalid goal id.
}; };
/** /**