[wesnoth-commits] [wesnoth/wesnoth] 8b41d4: Use a fallback for when the player name is not kno...

GitHub noreply at github.com
Mon Mar 26 23:30:21 UTC 2018


  Branch: refs/heads/1.14
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 8b41d4d8fc4408084abff62a4e7d63eeb1c10bd1
      https://github.com/wesnoth/wesnoth/commit/8b41d4d8fc4408084abff62a4e7d63eeb1c10bd1
  Author: Iris Morelle <shadowm at wesnoth.org>
  Date:   2018-03-26 (Mon, 26 Mar 2018)

  Changed paths:
    M src/synced_commands.cpp

  Log Message:
  -----------
  Use a fallback for when the player name is not known in debug notifications

We just found out that it is possible for the player name to not be set
when loading a singleplayer start-of-scenario save for the first time
right after launching Wesnoth. It's best to have an actual $player value
for that case instead of spurting 100% syntactically invalid statements
like "The :lua command was used during 's turn" because of the empty
variable.




More information about the Commits mailing list