I'm getting the same crash with delayed spells like Sarisin. Every time a delayed spell finishes casting the game crashes. This only happens in Rife, delayed spells work in FFH.
So I compared the FFH DLL with the RifE DLL and found out that the following code was added to CvUnit.cpp at Line ~17363
Code:
/*************************************************************************************************/
/** Xienwolf Tweak 02/14/09 **/
/** **/
/** Allows you to cast when you regain control of the unit **/
/*************************************************************************************************/
if (GC.getSpellInfo((SpellTypes)getDelayedSpell()).isHasCasted())
{
if (isHasCasted())
{
setHasCasted(false);
}
else
{
changeCastingLimit(1);
}
}
/*************************************************************************************************/
/** Tweak END **/
/*************************************************************************************************/
After removing that code and building a new DLL delayed spells are working now. Unfortunately my c++ skills are rather limited so I have no clue why that code would cause a crash for some people. Maybe someone else could take a look into that?
edit: somehow missed Ornedans post on the previous page, seems like he already found a fix for this bug.