mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Fix renaming dispatch schedule tag when it already had a name
This commit is contained in:
parent
f1bf3e9ca2
commit
58c72c9bc7
@ -890,6 +890,6 @@ void DispatchSchedule::SetSupplementaryName(ScheduledDispatchSupplementaryNameTy
|
|||||||
if (name.empty()) {
|
if (name.empty()) {
|
||||||
this->supplementary_names.erase(key);
|
this->supplementary_names.erase(key);
|
||||||
} else {
|
} else {
|
||||||
this->supplementary_names.insert({ key, std::move(name) });
|
this->supplementary_names[key] = std::move(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user