Skip to content

Commit

Permalink
Update palette_house.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Luan Luciano committed Sep 29, 2023
1 parent 3f24822 commit bee5b52
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/palette_house.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,15 +520,13 @@ void EditHouseDialog::OnClickOK(wxCommandEvent& WXUNUSED(event))
// Verify the newd information
long new_house_rent;
house_rent.ToLong(&new_house_rent);

long new_house_beds;
house_beds.ToLong(&new_house_beds);

long new_house_clientid;
house_clientid.ToLong(&new_house_clientid);

long new_house_beds;
house_beds.ToLong(&new_house_beds);

if(new_house_rent < 0) {
g_gui.PopupDialog(this, "Error", "House rent cannot be less than 0.", wxOK);
return;
Expand Down

0 comments on commit bee5b52

Please sign in to comment.