Skip to content

Commit 45ae371

Browse files
committed
Merge branch 'pathfinding-nav-optimizations' of https://github.com/cortex-command-community/Cortex-Command-Community-Project-Source into pathfinding-nav-optimizations
2 parents d4a5fff + cd20566 commit 45ae371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Activities/GameActivity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ void GameActivity::Update()
13471347
// Assure that Controlled Actor is a safe pointer
13481348

13491349
// Only allow this if player's brain is intact
1350-
if (g_MovableMan.IsActor(m_Brain[player]))
1350+
if (m_Brain[player] && !m_Brain[player]->IsDead() )
13511351
{
13521352
// Note that we have now had a brain
13531353
m_HadBrain[player] = true;

0 commit comments

Comments
 (0)