[Script] Removed double check'

This commit is contained in:
FutureRave 2021-11-13 19:12:16 +00:00
parent f101dbadec
commit 4cb8cdfca3
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955

View File

@ -512,12 +512,6 @@ namespace Components
return;
}
if (Game::Scr_GetType(0) != Game::VAR_FUNCTION || Game::Scr_GetType(1) != Game::VAR_FUNCTION)
{
Game::Scr_Error("^1ReplaceFunc: Needs function pointers as parameters!\n");
return;
}
const auto what = Script::GetCodePosForParam(0);
const auto with = Script::GetCodePosForParam(1);