mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-04 13:46:54 -04:00
#27, fixed house deletion issue .
This commit is contained in:
parent
b094b04acb
commit
487df9bead
1 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@ void CHouses::UpdateDialog()
|
|||
|
||||
CIniFile& ini = Map->GetIniFile();
|
||||
|
||||
if (!ini.TryGetSection(MAPHOUSES) && ini.Size() > 0) {
|
||||
if (ini[MAPHOUSES].Size() <= 0) {
|
||||
// MessageBox("No houses do exist, if you want to use houses, you should use ""Prepare houses"" before doing anything else.");
|
||||
} else {
|
||||
m_HumanPlayer.AddString("None");
|
||||
|
@ -471,7 +471,7 @@ void CHouses::OnDeletehouse()
|
|||
|
||||
ini.DeleteSection(name);
|
||||
|
||||
ini.RemoveValueByKey(MAPHOUSES, name);
|
||||
ini.RemoveValue(MAPHOUSES, name);
|
||||
|
||||
if (ini[MAPHOUSES].Size() == 0) {
|
||||
ini.DeleteSection(MAPHOUSES);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue