[SDK Debugging] CvGame.cpp - Error C2065 & Error C3861

doronron

King
Joined
Nov 16, 2003
Messages
906
Location
Home or Work...
I am working on merging TheLopez's M.A.D. Nukes, TheLopez's Localized Starting Techs, and monteczuma's Influence Driven War into a modified BtS v3.02 DLL. However, it's been a long time since I've coded anything really complex, so I need a bit of help. In CvGame.cpp, I stumbled into two errors.

The first one was:

Error C2065: 'm_bNukesValid': undeclared identifier

Code:
bool CvGame::isNukesValid() const
{
	return m_bNukesValid;
}

The second one was:

Error C3861: 'm_bNukesValid': identifier not found, even with arguement dependent lookup

Code:
void CvGame::makeNukesValid(bool bValid)
{
	m_bNukesValid = bValid;
}

Both pieces of code are one right after the other, and both pertain to the same difference in TheLopez's M.A.D. Nukes code. The value 'm_bNukesValid' is replaced with two new values, 'm_bNukeAnywhere' and 'm_bMADNukesEnabled'. In this case, I am not certain if I should use 'm_bNukeAnywhere', 'm_bMADNukesEnabled', both, or delete the section of code out of the CvGame.cpp file. Note that these were not lines in the v2.08 Warlords source code. Any suggestions?
 
Back
Top Bottom