From d829b8e9ee2b57539cc590f6eed68ac6748921cf Mon Sep 17 00:00:00 2001 From: Zero Fanker Date: Fri, 8 Nov 2024 23:45:11 -0500 Subject: [PATCH] a potential crash guardian . --- MissionEditor/TeamTypes.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MissionEditor/TeamTypes.cpp b/MissionEditor/TeamTypes.cpp index 92f7349..604b3b8 100644 --- a/MissionEditor/TeamTypes.cpp +++ b/MissionEditor/TeamTypes.cpp @@ -800,6 +800,9 @@ void CTeamTypes::OnEditchangeWaypoint() TruncSpace(str); auto sec = ini.TryGetSection(str); ASSERT(sec != nullptr); + if (sec == nullptr) { + return; + } if (strlen(m_Waypoint) == 0) { sec->SetString("Waypoint", "");