Changeset - r26850:c3615a5ab984
[Not reviewed]
master
0 2 0
SamuXarick - 19 months ago 2023-02-01 22:35:51
43006711+SamuXarick@users.noreply.github.com
Fix: [Script] Incorrect value for GOAL_INVALID (#10436)

* Fix: [Script] Incorrect value for GOAL_INVALID

* Cleanup: Remove unused static variable
2 files changed with 3 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/goal_type.h
Show inline comments
 
@@ -32,8 +32,7 @@ enum GoalType : byte {
 
	GT_STORY_PAGE,   ///< Destination is a story page
 
};
 

	
 
typedef uint32 GoalTypeID; ///< Contains either tile, industry ID, town ID or company ID (or INVALID_GOALTYPE)
 
static const GoalTypeID INVALID_GOALTYPE = 0xFFFFFFFF; ///< Invalid/unknown index of GoalType
 
typedef uint32 GoalTypeID; ///< Contains either tile, industry ID, town ID, company ID, or story page ID
 

	
 
typedef uint16 GoalID; ///< ID of a goal
 
struct Goal;
src/script/api/script_goal.hpp
Show inline comments
 
@@ -28,9 +28,9 @@ public:
 
	/**
 
	 * The goal IDs.
 
	 */
 
	enum GoalID {
 
	enum GoalID : uint16 {
 
		/* 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.
 
	};
 

	
 
	/**
0 comments (0 inline, 0 general)