Closed calmackenzie closed 5 years ago
Issue also occurred on turn end of another ancient's unit that did not have Lord's Order on it
I think I got the problem. Vampiric_Curse will steal hp from attached unit and restore same amount hp to caster. But caster can be died, which leaves m_caster to be random pointer.
Lords order is same, but its owner is commander. If commander dies, game ends, so it won't trigger exception.
And m_caster doesn't initialize as nullptr
Chain of events:
Screenshot of frame of crash: