Skip to content

Commit 5006a74

Browse files
committed
Whoops, fixed other crash
1 parent 8ffa270 commit 5006a74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Entities/PieMenu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ namespace RTE {
866866
m_ActiveSubPieMenu->SetHoveredPieSlice(m_ActiveSubPieMenu->m_PieQuadrants.at(m_ActiveSubPieMenu->m_DirectionIfSubPieMenu).m_MiddlePieSlice.get(), true);
867867
m_ActiveSubPieMenu->m_HoverTimer.SetRealTimeLimitMS(2000);
868868
m_ActiveSubPieMenu->m_HoverTimer.Reset();
869-
} else if (m_ActivatedPieSlice && m_ActivatedPieSlice->GetLuabindFunctionObjectWrapper()->GetLuabindObject()) {
869+
} else if (m_ActivatedPieSlice && m_ActivatedPieSlice->GetLuabindFunctionObjectWrapper() && m_ActivatedPieSlice->GetLuabindFunctionObjectWrapper()->GetLuabindObject()) {
870870
if (const MovableObject *scriptTarget = m_Owner ? m_Owner : m_AffectedObject) {
871871
g_LuaMan.GetMasterScriptState().RunScriptFunctionObject(m_ActivatedPieSlice->GetLuabindFunctionObjectWrapper(), "", "", { scriptTarget, this, m_ActivatedPieSlice });
872872
}

0 commit comments

Comments
 (0)