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

Commit

Permalink
Fixed a potential crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Causeless committed Nov 12, 2023
1 parent 97a1171 commit f130bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Entities/PieMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ namespace RTE {
m_ActiveSubPieMenu->SetHoveredPieSlice(m_ActiveSubPieMenu->m_PieQuadrants.at(m_ActiveSubPieMenu->m_DirectionIfSubPieMenu).m_MiddlePieSlice.get(), true);
m_ActiveSubPieMenu->m_HoverTimer.SetRealTimeLimitMS(2000);
m_ActiveSubPieMenu->m_HoverTimer.Reset();
} else if (m_ActivatedPieSlice && !m_ActivatedPieSlice->GetScriptPath().empty() && !m_ActivatedPieSlice->GetFunctionName().empty()) {
} else if (m_ActivatedPieSlice && m_ActivatedPieSlice->GetLuabindFunctionObjectWrapper()->GetLuabindObject()) {
if (const MovableObject *scriptTarget = m_Owner ? m_Owner : m_AffectedObject) {
g_LuaMan.GetMasterScriptState().RunScriptFunctionObject(m_ActivatedPieSlice->GetLuabindFunctionObjectWrapper(), "", "", { scriptTarget, this, m_ActivatedPieSlice });
}
Expand Down

0 comments on commit f130bca

Please sign in to comment.