diff --git a/source/games/duke/src/gamevar.cpp b/source/games/duke/src/gamevar.cpp index 8563819d3..b83a3ec72 100644 --- a/source/games/duke/src/gamevar.cpp +++ b/source/games/duke/src/gamevar.cpp @@ -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 ) {