[Commits] [wesnoth/wesnoth] 30322f: make "unit has empty type" error not fatal when st...

GitHub noreply at github.com
Fri Sep 12 16:24:44 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 30322ff0c9d509a1d8958f87ba86728f4a34a362
      https://github.com/wesnoth/wesnoth/commit/30322ff0c9d509a1d8958f87ba86728f4a34a362
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-09-12 (Fri, 12 Sep 2014)

  Changed paths:
    M src/teambuilder.hpp

  Log Message:
  -----------
  make "unit has empty type" error not fatal when starting a game

This can happen easily in a campaign if there are saveid mismatches
and such, and generally the only error message will be "game error:
created a unit with empty type". This commit makes the error not
fatal, and simply skips the unit. Also we give a better error
message, on the warning channel, which tells the id of the unit
and the details of the side which owned it.


  Commit: 9d2ffb9692e870b693d2bacd65b91a9198e3ccc7
      https://github.com/wesnoth/wesnoth/commit/9d2ffb9692e870b693d2bacd65b91a9198e3ccc7
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-09-12 (Fri, 12 Sep 2014)

  Changed paths:
    M src/ai/testing/stage_sf_with_rca.hpp
    M src/singleplayer.cpp

  Log Message:
  -----------
  Merge branch 'master' of git://github.com/wesnoth/wesnoth


Compare: https://github.com/wesnoth/wesnoth/compare/0e6a69328d0b...9d2ffb9692e8


More information about the Commits mailing list