Closed KroArtem closed 7 years ago
Thanks for reporting this bug :)
Did the crash happen in a loaded save game?
No, it first happened in a newly started campaign. Then it started to happen every time I try to load this savegame.
It seems like a a mine died (thus making its unit type NULL), but a worker was kept assigned to it regardless, causing a crash when a function related to the worker's gathering tried to get some information about the mine's unit type. I haven't been able to find out why the worker was kept assigned, but I've made a fix that will prevent the crash itself from happening: https://github.com/Andrettin/Wyrmgus/commit/c0e7709a8aa754f8a4096f69f88020b9595a709f
I think this one can be closed.
I was playing Dwarven campaign whilst this segfault happened. Don't know what caused the issue.