From 98e83fcc3ae73c7ed9369ced1261fd29544cf7ef Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Wed, 4 Oct 2023 19:32:24 +1100 Subject: [PATCH] - Use `DCorePlayer::GetActor()` inside of `CCMD(warptocoords)`. --- source/core/gameinput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/gameinput.cpp b/source/core/gameinput.cpp index 52325375d..0425ddbde 100644 --- a/source/core/gameinput.cpp +++ b/source/core/gameinput.cpp @@ -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]));