a potential crash guardian .

This commit is contained in:
Zero Fanker 2024-11-08 23:45:11 -05:00
parent b74e9e2763
commit d829b8e9ee

View file

@ -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", "");