mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
Codefix: Script's last_error is not a StringID. (#13227)
This commit is contained in:
parent
8dfab2a607
commit
d7235dc765
@ -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) */
|
||||
|
Loading…
Reference in New Issue
Block a user