From 10ec454f6bf8f9ded44ebc0a08a987b6e6e342fc Mon Sep 17 00:00:00 2001 From: Fiftytwo Date: Thu, 31 Dec 2020 05:00:33 +0100 Subject: [PATCH] Fix Target research() executing in ResearchCenter --- src/script/scriptfunc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/script/scriptfunc.cpp b/src/script/scriptfunc.cpp index 6db8f34c..b72ef470 100644 --- a/src/script/scriptfunc.cpp +++ b/src/script/scriptfunc.cpp @@ -595,7 +595,8 @@ bool CScriptFunctions::rResearch(CBotVar* var, CBotVar* result, int& exception, { bool ok = false; if ( type == RESEARCH_iPAW || - type == RESEARCH_iGUN ) + type == RESEARCH_iGUN || + type == RESEARCH_TARGET ) { if ( center->GetType() != OBJECT_LABO ) err = ERR_WRONG_OBJ;