summaryrefslogtreecommitdiff
path: root/src/script/api
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2013-10-02 21:44:31 +0000
committerzuu <zuu@openttd.org>2013-10-02 21:44:31 +0000
commit3ad18962733360fd40ae2e5a5349f6fb67768c12 (patch)
tree2171c4a08cbb2313dd21fabb30f29f2a81f7365f /src/script/api
parent59afce7cfb409f41a92e2bc778bdc615c1921604 (diff)
downloadopenttd-3ad18962733360fd40ae2e5a5349f6fb67768c12.tar.xz
(svn r25808) -Fix (r25788): [Script] INVALID_EXPENSES should be called EXPENSES_INVALID in the script API
Diffstat (limited to 'src/script/api')
-rw-r--r--src/script/api/game/game_company.hpp.sq2
-rw-r--r--src/script/api/script_company.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/script/api/game/game_company.hpp.sq b/src/script/api/game/game_company.hpp.sq
index f53d55baa..56917a5b2 100644
--- a/src/script/api/game/game_company.hpp.sq
+++ b/src/script/api/game/game_company.hpp.sq
@@ -43,7 +43,7 @@ void SQGSCompany_Register(Squirrel *engine)
SQGSCompany.DefSQConst(engine, ScriptCompany::EXPENSES_SHIP_INC, "EXPENSES_SHIP_INC");
SQGSCompany.DefSQConst(engine, ScriptCompany::EXPENSES_LOAN_INT, "EXPENSES_LOAN_INT");
SQGSCompany.DefSQConst(engine, ScriptCompany::EXPENSES_OTHER, "EXPENSES_OTHER");
- SQGSCompany.DefSQConst(engine, ScriptCompany::INVALID_EXPENSES, "INVALID_EXPENSES");
+ SQGSCompany.DefSQConst(engine, ScriptCompany::EXPENSES_INVALID, "EXPENSES_INVALID");
SQGSCompany.DefSQStaticMethod(engine, &ScriptCompany::ResolveCompanyID, "ResolveCompanyID", 2, ".i");
SQGSCompany.DefSQStaticMethod(engine, &ScriptCompany::SetName, "SetName", 2, "..");
diff --git a/src/script/api/script_company.hpp b/src/script/api/script_company.hpp
index 349961961..00adc795f 100644
--- a/src/script/api/script_company.hpp
+++ b/src/script/api/script_company.hpp
@@ -63,7 +63,7 @@ public:
EXPENSES_SHIP_INC = ::EXPENSES_SHIP_INC, ///< Income from ships.
EXPENSES_LOAN_INT = ::EXPENSES_LOAN_INT, ///< Interest payments over the loan.
EXPENSES_OTHER = ::EXPENSES_OTHER, ///< Other expenses.
- INVALID_EXPENSES = ::INVALID_EXPENSES, ///< Invalid expense type.
+ EXPENSES_INVALID = ::INVALID_EXPENSES, ///< Invalid expense type.
};
/**