Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GUI2/Minimap: fixed a few issues with the new drawing impl
First, the gamemap ptr wasn't reset if map creation failed, meaning the last data set was drawn instead. Secondly, if no valid map data was provided before the canvas_draw_background function was called, you'd get a nullptr dereference. This fix also means invalid maps aren't drawn in the Load Game dialog as before, since the canvas will clear the texture before calling canvas_draw_background, which will now do nothing if map_ is null.
- Loading branch information