- Use DCorePlayer::GetActor() inside of CCMD(warptocoords).

This commit is contained in:
Mitchell Richters 2023-10-04 19:32:24 +11:00
parent 7e3a1dfb1e
commit 98e83fcc3a

View file

@ -728,7 +728,7 @@ CCMD(warptocoords)
return;
}
if (const auto pActor = PlayerArray[myconnectindex]->actor)
if (const auto pActor = PlayerArray[myconnectindex]->GetActor())
{
pActor->spr.pos = DVector3(atof(argv[1]), atof(argv[2]), atof(argv[3]));
if (argv.argc() > 4) pActor->spr.Angles.Yaw = DAngle::fromDeg(atof(argv[4]));