- fixed use of wrong indexing function.

This commit is contained in:
Christoph Oelckers 2021-11-28 13:40:38 +01:00
parent 73243f95bb
commit 34373e9c70

View file

@ -284,7 +284,7 @@ int GetGameVarID(int id, DDukeActor* sActor, int sPlayer)
}
if (id == g_iThisActorID)
{
return sActor->GetSpriteIndex();
return ActorToScriptIndex(sActor);
}
if( aGameVars[id].dwFlags & GAMEVAR_FLAG_PERPLAYER )
{