[Commits] [wesnoth/wesnoth] 551508: Fix #1516: units created with [move_units_fake] di...

GitHub noreply at github.com
Sat Feb 17 09:51:26 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 551508b9c992a4fbbfa2b7336195d54bce732c25
      https://github.com/wesnoth/wesnoth/commit/551508b9c992a4fbbfa2b7336195d54bce732c25
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2018-02-17 (Sat, 17 Feb 2018)

  Changed paths:
    M changelog
    M src/game_events/action_wml.cpp

  Log Message:
  -----------
  Fix #1516: units created with [move_units_fake] disappear between steps

The code accidentally added a wrong fake_unit_ptr to the fake unit manager.
The wrong pointer was removed from the manager immediately after being
added, and therefore only the other fake_unit_ptr, created by unit_mover,
remained. Thus, moving fake units were drawn, but stationary ones weren't.





More information about the Commits mailing list