Skip to content

Commit

Permalink
fix(house): fix to bug when changing account after recent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Torwent committed Jan 3, 2025
1 parent ee3440f commit ae83254
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion optional/handlers/house/house.simba
Original file line number Diff line number Diff line change
Expand Up @@ -1392,11 +1392,18 @@ begin
if Login.PlayerIndex <> House.Loader.LayoutIndex then
begin
House.Loader.Free();

House.Loader.Init(32, 13);

combobox := TPanel(sender).GetChild('location_combobox');
combobox.SetItemIndex(Ord(House.Loader.Location));

combobox := TPanel(sender).GetChild('decoration_combobox');
Self.POHDecorationUpdate(combobox);
combobox.SetItemIndex(Ord(House.Loader.Decoration));

combobox := TPanel(sender).GetChild('room_combobox');
combobox.SetItemIndex(Ord(House.Loader.ReadRoom(House.Loader.Selected.Matrix).Room));

Self.RoomUpdate(combobox);
end;
end;
Expand Down

0 comments on commit ae83254

Please sign in to comment.