[Commits] [wesnoth/wesnoth] 393ac9: Game Events/Manager: refactor event iteration inte...

GitHub noreply at github.com
Fri Dec 22 09:14:38 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 393ac9bd7026d138de803fee1b2e123f51c71b06
      https://github.com/wesnoth/wesnoth/commit/393ac9bd7026d138de803fee1b2e123f51c71b06
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-12-22 (Fri, 22 Dec 2017)

  Changed paths:
    M src/game_events/manager.cpp
    M src/game_events/manager.hpp

  Log Message:
  -----------
  Game Events/Manager: refactor event iteration interface

Instead of trying to iterate over two lists at once, just construct a new list of matching
handlers. This should fix #2310 too, since it ensures any additional events added after
iteration begins don't get executed.





More information about the Commits mailing list