Fix Target research() executing in ResearchCenter

pyro-refactor
Fiftytwo 2020-12-31 05:00:33 +01:00
parent 4c1d3eecd1
commit 10ec454f6b
1 changed files with 2 additions and 1 deletions

View File

@ -595,7 +595,8 @@ bool CScriptFunctions::rResearch(CBotVar* var, CBotVar* result, int& exception,
{ {
bool ok = false; bool ok = false;
if ( type == RESEARCH_iPAW || if ( type == RESEARCH_iPAW ||
type == RESEARCH_iGUN ) type == RESEARCH_iGUN ||
type == RESEARCH_TARGET )
{ {
if ( center->GetType() != OBJECT_LABO ) if ( center->GetType() != OBJECT_LABO )
err = ERR_WRONG_OBJ; err = ERR_WRONG_OBJ;