Skip to content

Commit d6f1084

Browse files
committed
Fixed crash if you kill a player's brain in Dday
1 parent b2aee02 commit d6f1084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/Missions.rte/Activities/DecisionDay.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1803,7 +1803,7 @@ end
18031803
function DecisionDay:DoHumanBrainPieSliceHandling()
18041804
for _, player in pairs(self.humanPlayers) do
18051805
local brain = self:GetPlayerBrain(player);
1806-
if brain and not brain:IsInGroup("Deployed Brain " .. player) then
1806+
if brain and MovableMan:ValidMO(brain) and not brain:IsInGroup("Deployed Brain " .. player) then
18071807
local pieSlice = brain.PieMenu:GetFirstPieSliceByPresetName(self.deployBrainPieSlice.PresetName);
18081808
if not pieSlice then
18091809
brain.PieMenu:AddPieSlice(self.deployBrainPieSlice:Clone(), self);

0 commit comments

Comments
 (0)