When compiling mangos with AHBOT,PLAYERBOT and MMAPS i get
CXX Map.o
../../../src/game/Map.cpp: In member function "void Map::LoadMapAndVMap(int, int)":
../../../src/game/Map.cpp:137: error: "_parent" was not declared in this scope
../../../src/game/Map.cpp:137: error: expected primary-expression before "(" token
../../../src/game/Map.cpp:137: error: expected primary-expression before "id"
../../../src/game/Map.cpp:137: error: expected primary-expression before "expiry"
../../../src/game/Map.cpp:137: error: expected primary-expression before "InstanceId"
../../../src/game/Map.cpp:137: error: expected primary-expression before "SpawnMode"
../../../src/game/Map.cpp:137: error: expected primary-expression before "*" token
../../../src/game/Map.cpp:138: error: expected ";" before ":" token
../../../src/game/Map.cpp:3454: error: expected ‘}’ at end of input
make[4]: *** [Map.o] Error 1
Here's the code in question:
Line 137: Map::Map(uint32 id, time_t expiry, uint32 InstanceId, uint8 SpawnMode, Map* _pa$
: i_mapEntry (sMapStore.LookupEntry(id)), i_spawnMode(SpawnMode),
i_id(id), i_InstanceId(InstanceId), m_unloadTimer(0),
m_VisibleDistance(DEFAULT_VISIBILITY_DISTANCE), m_instanceSave(NULL),
m_activeNonPlayersIter(m_activeNonPlayers.end()),
i_gridExpiry(expiry), m_parentMap(_parent ? _parent : this),
m_lastUpdateTime(getMSTime()) // expected that ne$
m_navMesh(NULL)
Anyone know what I'm doing wrong?
I'm pretty new to C/C++ in general, so sorry if it's something stupid that I missed. this is on Ubuntu server 10.10