diff --git a/src/misc_cmd.cpp b/src/misc_cmd.cpp index 0213207479..c24a78e60c 100644 --- a/src/misc_cmd.cpp +++ b/src/misc_cmd.cpp @@ -374,7 +374,7 @@ CommandCost CmdGiveMoney(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 CompanyID dest_company = (CompanyID)p1; /* You can only transfer funds that is in excess of your loan */ - if (c->money - c->current_loan < amount.GetCost() || amount.GetCost() < 0) return CMD_ERROR; + if (c->money - c->current_loan < amount.GetCost() || amount.GetCost() < 0) return_cmd_error(STR_ERROR_INSUFFICIENT_FUNDS); if (!Company::IsValidID(dest_company)) return CMD_ERROR; if (flags & DC_EXEC) { diff --git a/src/programmable_signals_gui.cpp b/src/programmable_signals_gui.cpp index 01f221cd04..5ad8e52234 100644 --- a/src/programmable_signals_gui.cpp +++ b/src/programmable_signals_gui.cpp @@ -299,7 +299,7 @@ public: SB(p1, 0, 3, this->track); SB(p1, 3, 16, ins->Id()); - DoCommandP(this->tile, p1, 0, CMD_REMOVE_SIGNAL_INSTRUCTION | CMD_MSG(STR_ERROR_CAN_T_MODIFY_INSTRUCTION)); + DoCommandP(this->tile, p1, 0, CMD_REMOVE_SIGNAL_INSTRUCTION | CMD_MSG(STR_ERROR_CAN_T_REMOVE_INSTRUCTION)); this->RebuildInstructionList(); } break; diff --git a/src/tracerestrict_gui.cpp b/src/tracerestrict_gui.cpp index bec5b4c463..dddb8fa49e 100644 --- a/src/tracerestrict_gui.cpp +++ b/src/tracerestrict_gui.cpp @@ -4584,7 +4584,7 @@ public: if (this->ctr_qt_op == NEW_TRACE_RESTRICT_COUNTER_ID) { DoCommandP(0, 0, 0, CMD_CREATE_TRACERESTRICT_COUNTER | CMD_MSG(STR_TRACE_RESTRICT_ERROR_COUNTER_CAN_T_CREATE), nullptr, str); } else { - DoCommandP(0, this->ctr_qt_op, 0, CMD_ALTER_TRACERESTRICT_COUNTER | CMD_MSG(STR_TRACE_RESTRICT_ERROR_COUNTER_CAN_T_MODIFY), nullptr, str); + DoCommandP(0, this->ctr_qt_op, 0, CMD_ALTER_TRACERESTRICT_COUNTER | CMD_MSG(STR_TRACE_RESTRICT_ERROR_COUNTER_CAN_T_RENAME), nullptr, str); } break;