From d7235dc7658fc70ee2cee17ef9968d28c4064d03 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Wed, 1 Jan 2025 21:35:41 +0000 Subject: [PATCH] Codefix: Script's last_error is not a StringID. (#13227) --- src/script/script_storage.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script/script_storage.hpp b/src/script/script_storage.hpp index 6f856908d5..3edfe978c1 100644 --- a/src/script/script_storage.hpp +++ b/src/script/script_storage.hpp @@ -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) */