Skip to content

Commit 8d69cd6

Browse files
committed
Fixed complaints about required area
1 parent a073405 commit 8d69cd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Managers/SceneMan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2393,7 +2393,7 @@ Vector SceneMan::MovePointToGround(const Vector &from, int maxAltitude, int accu
23932393
{
23942394
// Todo, instead of a nograv area maybe best to tag certain areas as NoGrav. As otherwise it's tricky to keep track of when things are removed
23952395
if (m_pCurrentScene) {
2396-
Scene::Area* noGravArea = m_pCurrentScene->GetArea("NoGravityArea");
2396+
Scene::Area* noGravArea = m_pCurrentScene->GetOptionalArea("NoGravityArea");
23972397
if (noGravArea && noGravArea->IsInside(from)) {
23982398
return from;
23992399
}

0 commit comments

Comments
 (0)