[SDK] CvPlayer.h add error?

ztjal

Chieftain
Joined
Sep 18, 2008
Messages
10
Location
china
CvPlayer.h

on
protected:

i add “int m_iCanBuildRiverNum;”


Code:
	int m_iCombatExperience;
	int m_iPopRushHurryCount;
	int m_iInflationModifier;

	uint m_uiStartTime;  // XXX save these?

    // add PLAYEROPTION_WORKER_BUILD_RIVER
	int m_iCanBuildRiverNum;
    // end add

	bool m_bAlive;
	bool m_bEverAlive;
	bool m_bTurnActive;
	bool m_bAutoMoves;


i just only add the “int m_iCanBuildRiverNum;” , to build dll is ok, but play a new game, if only see another civ city , the game is shut down ,i don't know why??:confused:


if i "//" the “int m_iCanBuildRiverNum;” , all is ok, no problem :(


on CvPlayer.cpp i "//" all i add

Code:
    //m_iCanBuildRiverNum = 0;


/*
int CvPlayer::getCanBuildRiverNum() const
{
    return m_iCanBuildRiverNum;
}

void CvPlayer::setCanBuildRiverNum(int iChange)
{
    m_iCanBuildRiverNum += iChange;
}
*/


	//pStream->Read(&m_iCanBuildRiverNum);

	//pStream->Write(m_iCanBuildRiverNum);


sorry my english.
 
the problem to solved by myself
del "Final Release" and output dll's "Beyond the Sword" folder, let them "build" a new one.
 
Top Bottom