Fix God command

This commit is contained in:
FutureRave 2022-02-25 12:20:34 +00:00
parent 20d0337880
commit 967642c6d1
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955

View File

@ -219,7 +219,7 @@ namespace Components
Script::AddFunction("God", [](Game::scr_entref_t entref) // gsc: God(<optional int toggle>);
{
auto* ent = Game::GetPlayerEntity(entref);
auto* ent = Game::GetEntity(entref);
if (Game::Scr_GetNumParam() >= 1u)
{