Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 89fd2e5

Browse files
committed
Fixed crash when trying to load game with actors that have waypoints if there's no scene
1 parent 1d7573d commit 89fd2e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Entities/Actor.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,6 +1221,10 @@ MOID Actor::GetAIMOWaypointID() const
12211221

12221222
bool Actor::UpdateMovePath()
12231223
{
1224+
1225+
if (g_SceneMan.GetScene() == nullptr) {
1226+
return false;
1227+
}
12241228
// TODO: Do throttling of calls for this function over time??
12251229

12261230
// Estimate how much material this actor can dig through

0 commit comments

Comments
 (0)