Fix indentation in RacingManager.cpp and compilation on Linux

This commit is contained in:
dongresource 2020-12-22 14:46:09 +01:00
parent 8a2073d081
commit 322e354f5b
4 changed files with 109 additions and 114 deletions

View File

@ -1825,8 +1825,4 @@ void Database::postRaceRanking(Database::RaceRanking ranking) {
}
sqlite3_finalize(stmt);
return;
}

View File

@ -12,7 +12,6 @@ struct EPRace {
};
namespace RacingManager {
extern std::map<int32_t, EPInfo> EPData;
extern std::map<CNSocket*, EPRace> EPRaces;
extern std::map<int32_t, std::pair<std::vector<int>, std::vector<int>>> EPRewards;

View File

@ -547,7 +547,7 @@ void TableData::loadDrops() {
// find the instance data corresponding to the EPID
int EPMap = -1;
for (auto& it = RacingManager::EPData.begin(); it != RacingManager::EPData.end(); it++) {
for (auto it = RacingManager::EPData.begin(); it != RacingManager::EPData.end(); it++) {
if (it->second.EPID == raceEPID) {
EPMap = it->first;
}