[Commits] [wesnoth/wesnoth] a4018f: ToD manager: ensure that there is at least one ToD

GitHub noreply at github.com
Mon Jan 1 10:36:32 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: a4018faad1c79ebb0fb68a995c6edfb5b1224ec1
      https://github.com/wesnoth/wesnoth/commit/a4018faad1c79ebb0fb68a995c6edfb5b1224ec1
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2018-01-01 (Mon, 01 Jan 2018)

  Changed paths:
    M src/tod_manager.cpp

  Log Message:
  -----------
  ToD manager: ensure that there is at least one ToD

Complete lack of ToDs is an unsupported use case,
causing crashes and undefined behavior. See time_of_day::parse_times().

Fixes #2301.





More information about the Commits mailing list