[Commits] [wesnoth/wesnoth] b721d7: workaround for bug #21797

GitHub noreply at github.com
Tue Mar 18 22:26:44 UTC 2014


  Branch: refs/heads/1.12
  Home:   https://github.com/wesnoth/wesnoth
  Commit: b721d73ed034f763019100e4bc028b60fc2117fe
      https://github.com/wesnoth/wesnoth/commit/b721d73ed034f763019100e4bc028b60fc2117fe
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-03-18 (Tue, 18 Mar 2014)

  Changed paths:
    M changelog
    M src/playcampaign.cpp

  Log Message:
  -----------
  workaround for bug #21797

at a certain point in playcampaign.cpp after the level has ended, wesnoth was
grabbing .child("end_level_data"), and writing carry_over sides.
this would cause "mandatory child missing" errors in the test case described.

we fix the error by checking if the child was not present and if so adding it.
however, it may indicate a more fundamental bug involving reloaded games.





More information about the Commits mailing list