[Commits] [wesnoth/wesnoth] b04bc7: Minimap: fixed UB when accessing display singleton...

GitHub noreply at github.com
Mon Feb 5 14:21:04 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: b04bc7d7b065caec285b6c5a0646d3b8efed9aed
      https://github.com/wesnoth/wesnoth/commit/b04bc7d7b065caec285b6c5a0646d3b8efed9aed
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2018-02-06 (Tue, 06 Feb 2018)

  Changed paths:
    M src/minimap.cpp

  Log Message:
  -----------
  Minimap: fixed UB when accessing display singleton (fixes #2447)

Was UB when drawing the minimap in the editor since the display object was an editor_disply
not game_display. No reason to access game_display anyway, since is_blindfolded() is defined
in display.

Cropped up in 786233d5c95913889d6f061f3749f80a5efd61c1.





More information about the Commits mailing list