diff options
Diffstat (limited to 'Stars45/NetUnitDlg.cpp')
-rw-r--r-- | Stars45/NetUnitDlg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Stars45/NetUnitDlg.cpp b/Stars45/NetUnitDlg.cpp index 28b264a..b3f0115 100644 --- a/Stars45/NetUnitDlg.cpp +++ b/Stars45/NetUnitDlg.cpp @@ -196,7 +196,7 @@ NetUnitDlg::ExecFrame() if (lst_players && lst_units && btn_select->IsVisible()) { int sel_unit = lst_units->GetSelection(); - enable = sel_unit >= 0 && + enable = sel_unit >= 0 && lst_units->GetItemText(sel_unit).length() == 0; } @@ -210,7 +210,7 @@ NetUnitDlg::ExecFrame() int sel_play = lst_players->GetSelection(); int sel_unit = lst_units->GetSelection(); - enable = sel_unit >= 0 && sel_play >= 0 && + enable = sel_unit >= 0 && sel_play >= 0 && lst_units->GetItemText(sel_unit).length() == 0; if (enable && !host_mode) { |