mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-04-30 09:01:41 -04:00
a potential crash guardian .
This commit is contained in:
parent
b74e9e2763
commit
d829b8e9ee
1 changed files with 3 additions and 0 deletions
|
@ -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", "");
|
||||
|
|
Loading…
Add table
Reference in a new issue