From 7662f312b399b58faf20db4a850a2b0298d659df Mon Sep 17 00:00:00 2001 From: krzys-h Date: Sat, 18 May 2013 18:29:07 +0200 Subject: Changed "Inappropariate bot"->"Inappropariate object" in newly added functions --- src/script/script.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/script/script.cpp') diff --git a/src/script/script.cpp b/src/script/script.cpp index fb9ee93..250f052 100644 --- a/src/script/script.cpp +++ b/src/script/script.cpp @@ -538,7 +538,7 @@ bool CScript::rBusy(CBotVar* thisclass, CBotVar* var, CBotVar* result, int& exce if ( automat != nullptr ) result->SetValInt(automat->GetBusy()); else - exception = ERR_MANIP_VEH; + exception = ERR_WRONG_OBJ; return true; } @@ -571,7 +571,7 @@ bool CScript::rDestroy(CBotVar* thisclass, CBotVar* var, CBotVar* result, int& e { err = automat->StartAction(0); } else - err = ERR_MANIP_VEH; + err = ERR_WRONG_OBJ; if ( err != ERR_OK ) { @@ -728,7 +728,7 @@ bool CScript::rFactory(CBotVar* thisclass, CBotVar* var, CBotVar* result, int& e else err = ERR_BUILD_DISABLED; } else - err = ERR_MANIP_VEH; + err = ERR_WRONG_OBJ; if ( err != ERR_OK ) { -- cgit v1.2.3-1-g7c22