Codefix: Script's last_error is not a StringID. (#13227)

This commit is contained in:
Peter Nelson 2025-01-01 21:35:41 +00:00 committed by GitHub
parent 8dfab2a607
commit d7235dc765
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,6 +17,7 @@
#include "../goal_type.h"
#include "../story_type.h"
#include "script_types.hpp"
#include "script_log_types.hpp"
#include "table/strings.h"
@ -49,7 +50,7 @@ private:
CommandCost costs; ///< The costs the script is tracking.
Money last_cost; ///< The last cost of the command.
uint last_error; ///< The last error of the command.
ScriptErrorType last_error{}; ///< The last error of the command.
bool last_command_res; ///< The last result of the command.
CommandDataBuffer last_data; ///< The last data passed to a command.
@ -76,7 +77,6 @@ public:
allow_do_command (true),
/* costs (can't be set) */
last_cost (0),
last_error (STR_NULL),
last_command_res (true),
last_cmd (CMD_END),
/* calback_value (can't be set) */