Skip to content

fixes

Latest

Choose a tag to compare

@TerminShock TerminShock released this 20 Nov 20:45
· 4 commits to main since this release
tropico2: what is kept of a window is forgotten when it is destroyed

Starting a campaign destroys the game screen and its memory is reused, but
the bar, the HUD's part and the desktop stayed remembered: drawing dialogs
followed the dead bar's parent into garbage and crashed. Every window's
destructor ends in 0x008dce40, now hooked: the bar laid out (when it or a
window it is in goes), its pieces, the HUD's part and the desktop are
forgotten without writing to them, and the bar is laid out again when next
drawn.