[Commits] [wesnoth/wesnoth] d5f172: Title Screen: fixed crash if game_config::game_tit...

GitHub noreply at github.com
Sun Dec 11 16:11:32 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: d5f172b942a45e0918e7c72f1f8084dd2b97243e
      https://github.com/wesnoth/wesnoth/commit/d5f172b942a45e0918e7c72f1f8084dd2b97243e
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-12-12 (Mon, 12 Dec 2016)

  Changed paths:
    M src/gui/dialogs/title_screen.cpp

  Log Message:
  -----------
  Title Screen: fixed crash if game_config::game_title or game_title_background was empty (bug #22028)

The problem was that if either string was empty, their respective canvas variables would not be set and
result in a type_error being thrown.

With this change, the canvas variable is always set, even if it's just an empty string.





More information about the Commits mailing list