[Commits] [wesnoth/wesnoth] 70b468: Work around unit halo not disappearing with [kill]...

GitHub noreply at github.com
Mon Dec 25 16:35:39 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 70b468070b71616aa3663088b6ad171391d0c4f0
      https://github.com/wesnoth/wesnoth/commit/70b468070b71616aa3663088b6ad171391d0c4f0
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2017-12-25 (Mon, 25 Dec 2017)

  Changed paths:
    M data/lua/wml/kill.lua

  Log Message:
  -----------
  Work around unit halo not disappearing with [kill] animate=yes

The problem was that the kill animation retained a reference to the unit.
Triggering a Lua garbage collection (which destroys the animation object)
fixes it, although it's definitely not a pretty fix.

Closes pull request #2313.





More information about the Commits mailing list