mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-05 01:02:24 +00:00
LoadFactionValues_result converted to MySQLRequestResult
This commit is contained in:
parent
833227f7f6
commit
2e84781594
@ -2350,11 +2350,11 @@ bool ZoneDatabase::LoadFactionValues(uint32 char_id, faction_map & val_list) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ZoneDatabase::LoadFactionValues_result(MYSQL_RES* result, faction_map & val_list) {
|
bool ZoneDatabase::LoadFactionValues_result(MySQLRequestResult results, faction_map & val_list) {
|
||||||
MYSQL_ROW row;
|
|
||||||
while((row = mysql_fetch_row(result))) {
|
for (auto row = results.begin(); row != results.begin(); ++row)
|
||||||
val_list[atoi(row[0])] = atoi(row[1]);
|
val_list[atoi(row[0])] = atoi(row[1]);
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -302,7 +302,7 @@ public:
|
|||||||
bool SetCharacterFactionLevel(uint32 char_id, int32 faction_id, int32 value, uint8 temp, faction_map &val_list); // rembrant, needed for factions Dec, 16 2001
|
bool SetCharacterFactionLevel(uint32 char_id, int32 faction_id, int32 value, uint8 temp, faction_map &val_list); // rembrant, needed for factions Dec, 16 2001
|
||||||
bool LoadFactionData();
|
bool LoadFactionData();
|
||||||
bool LoadFactionValues(uint32 char_id, faction_map & val_list);
|
bool LoadFactionValues(uint32 char_id, faction_map & val_list);
|
||||||
bool LoadFactionValues_result(MYSQL_RES* result, faction_map & val_list);
|
bool LoadFactionValues_result(MySQLRequestResult result, faction_map & val_list);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* AAs
|
* AAs
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user