Skip to content

Commit 8be70ae

Browse files
author
tjohnman
committed
Check for valid pointer before calling CastSeeRays method.
1 parent c9859e9 commit 8be70ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Managers/MovableMan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ void MovableMan::Update() {
13711371
[&](int start, int end) {
13721372
ZoneScopedN("Actors See");
13731373
for (int i = start; i < end; ++i) {
1374-
m_Actors[i]->CastSeeRays();
1374+
if (m_Actors[i]) m_Actors[i]->CastSeeRays();
13751375
}
13761376
});
13771377

0 commit comments

Comments
 (0)