[Fix] Error Compiling linux. Player.cpp
Issue #35
resolved
In Player.cpp around line 3100 (I have other patches, so not sure) there is this line of code:
std::set<std::pair<uint32, uint8>> npcBotsData;
do
{
Field* fields = result->Fetch();
uint32 temp_entry = fields[0].GetUInt32();
uint32 temp_race = fields[1].GetUInt8();
npcBotsData.insert(std::make_pair<uint32, uint8>(temp_entry, temp_race));
} while (result->NextRow());
uint32 m_rand = urand(1, uint32(result->GetRowCount()));
uint32 tmp_rand = 1;
std::set<std::pair<uint32, uint8>>::const_iterator itr = npcBotsData.begin();
This causes some funky errors with Linux. The fix is simple.
uint8>>
becomes
uint8> >
Those 2 little spaces fixed the compile errors.
Comments (2)
-
repo owner -
repo owner - changed status to resolved
Updated
- Log in to comment
Thanks for notice