[Commits] [wesnoth/wesnoth] ba3c6e: Fixed floating label context dtors sometimes getti...

GitHub noreply at github.com
Thu Nov 2 20:49:25 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: ba3c6ec3da54d0d55ea1f7a4df7246b40a078e5f
      https://github.com/wesnoth/wesnoth/commit/ba3c6ec3da54d0d55ea1f7a4df7246b40a078e5f
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-11-03 (Fri, 03 Nov 2017)

  Changed paths:
    M src/floating_label.cpp

  Log Message:
  -----------
  Fixed floating label context dtors sometimes getting stuck in an infinite loop

This fixes #2154. For some reason, after opening help from the File menu and then quitting to desktop,
the number of labels recorded in the label map and context set weren't equal. I'm not exactly sure
why, since the code seems to indicate they should be, and the loop doesn't seem to be hit when only
invoking help with the hotkey (F1).

This just removes the predication of a label being present in the label map for removal from the context
set. I also removed two useless, unused variables that I'm surprised no one's complained about.





More information about the Commits mailing list