Follow-up Comment #1, bug #20704 (project wesnoth):
Hmm... the crash occurs because units are being created outside the context of
a game, and the unit class often assumes or asserts that it is in the context
of a game (i.e. that the global resources:: point to things).
Not sure which would be the more correct fix -- change the unit class or
change the code that creates units outside games. However, it looks like the
latter would be a net efficiency gain, so that is probably worth committing
once it's had some testing (I already have the changes locally). If that would
also be considered a fix to this bug (not just a band-aid), go ahead and
assign it to me.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?20704>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs