Hey guys, I need to make a debug version cause i am getting a dump CTD,
my dll compiles for release but not for debug,
Here is the Error:
1>CvPlayer.cpp
1>CvPlayer.cpp(13425) : error C2064: term does not evaluate to a function taking 2 arguments
Here is the Code:
And for good measure I attached the files too.
I remember when I merged this element (for allowing civics to change specialist output) there was a bit of a conflict with kmod that I never truly resolved, something about the AI not recognising the benefits of multiple specialists, that kmod fixed, but that wasn't present in the mod comp because it is bts based.
As ever thanks for any help or illumination you can provide!
my dll compiles for release but not for debug,
Here is the Error:
1>CvPlayer.cpp
1>CvPlayer.cpp(13425) : error C2064: term does not evaluate to a function taking 2 arguments
Here is the Code:
Spoiler :
Code:
void CvPlayer::changeSpecialistCivicExtraCommerce(SpecialistTypes eIndex1, CommerceTypes eIndex, int iChange)
{
FAssertMsg(eIndex1 >= 0, "eIndex1 expected to be >= 0");
FAssertMsg(eIndex1 < GC.getNumSpecialistInfos(), "eIndex1 expected to be < GC.getNumSpecialistInfos()");
FAssertMsg(eIndex >= 0, "eIndex expected to be >= 0");
FAssertMsg(eIndex < NUM_COMMERCE_TYPES, "eIndex expected to be < NUM_COMMERCE_TYPES");
if (iChange != 0)
{
m_ppaaiSpecialistCivicExtraCommerce[eIndex1][eIndex] = (m_ppaaiSpecialistCivicExtraCommerce[eIndex1][eIndex] + iChange);
[COLOR="Red"]FAssert(m_ppaaiSpecialistCivicExtraCommerce(eIndex1, eIndex) >= 0);[/COLOR]
updateSpecialistCivicExtraCommerce();
AI_makeAssignWorkDirty();
}
}
And for good measure I attached the files too.
I remember when I merged this element (for allowing civics to change specialist output) there was a bit of a conflict with kmod that I never truly resolved, something about the AI not recognising the benefits of multiple specialists, that kmod fixed, but that wasn't present in the mod comp because it is bts based.
As ever thanks for any help or illumination you can provide!