Bug fix for the biggest crash and fixes to the primitives

I figured a while ago that the cause of the crash was a rendering issue, not an engine issue, since you could copy spells in the stack if you didn't targeted them. The crash was most likely in ActionStack, just had to follow the trace. It doesn't affect anithing else, that line was trying to render something in the stack that's a permanent but it always had bad ptrs.
This commit is contained in:
Eduardo
2019-04-17 20:28:43 -05:00
parent c3937ce517
commit 3dfcc65fa6
5 changed files with 221 additions and 196 deletions

View File

@@ -274,8 +274,8 @@ void StackAbility::Render()
else
fmLibrary++;
}
else
mytargetQuads.push_back( ((Damageable *)(tt))->getIcon() );
//else // This was crashing the game when a permanent targeted a spell in the stack
//mytargetQuads.push_back( ((Damageable *)(tt))->getIcon() );
}
}
}