From 55b46942cb818666c68dc896843aa563160d0320 Mon Sep 17 00:00:00 2001 From: Fiftytwo Date: Tue, 16 Jun 2020 21:02:52 +0200 Subject: [PATCH] Remove unnecessary whitespaces --- src/script/scriptfunc.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/script/scriptfunc.cpp b/src/script/scriptfunc.cpp index e7d44559..036a6c08 100644 --- a/src/script/scriptfunc.cpp +++ b/src/script/scriptfunc.cpp @@ -398,7 +398,7 @@ bool CScriptFunctions::rDestroy(CBotVar* var, CBotVar* result, int& exception, v obj = CObjectManager::GetInstancePointer()->FindNearest(pThis, OBJECT_DESTROYER); else obj = static_cast(var->GetUserPtr()); - + if (obj == nullptr) { exception = ERR_WRONG_OBJ; @@ -657,7 +657,7 @@ bool CScriptFunctions::rTakeOff(CBotVar* var, CBotVar* result, int& exception, v base = CObjectManager::GetInstancePointer()->FindNearest(pThis, OBJECT_BASE); else base = static_cast(var->GetUserPtr()); - + if (base == nullptr) { exception = ERR_WRONG_OBJ; @@ -3070,12 +3070,12 @@ CBotTypResult CScriptFunctions::cOneObject(CBotVar* &var, void* user) { var = var->GetNext(); if ( var == nullptr ) return CBotTypResult(CBotTypFloat); - } + } else return CBotTypResult(CBotTypFloat); - + return CBotTypResult(CBotErrOverParam); - + } // Instruction "camerafocus(object)".