mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-14 03:19:56 +00:00
Use field names instead of numbers for CDClient tables (#945)
This commit is contained in:
@@ -18,11 +18,11 @@ CDPropertyEntranceComponentTable::CDPropertyEntranceComponentTable() {
|
||||
auto tableData = CDClientDatabase::ExecuteQuery("SELECT * FROM PropertyEntranceComponent;");
|
||||
while (!tableData.eof()) {
|
||||
auto entry = CDPropertyEntranceComponent{
|
||||
static_cast<uint32_t>(tableData.getIntField(0, -1)),
|
||||
static_cast<uint32_t>(tableData.getIntField(1, -1)),
|
||||
tableData.getStringField(2, ""),
|
||||
static_cast<bool>(tableData.getIntField(3, false)),
|
||||
tableData.getStringField(4, "")
|
||||
static_cast<uint32_t>(tableData.getIntField("id", -1)),
|
||||
static_cast<uint32_t>(tableData.getIntField("mapID", -1)),
|
||||
tableData.getStringField("propertyName", ""),
|
||||
static_cast<bool>(tableData.getIntField("isOnProperty", false)),
|
||||
tableData.getStringField("groupType", "")
|
||||
};
|
||||
|
||||
this->entries.push_back(entry);
|
||||
@@ -46,3 +46,4 @@ CDPropertyEntranceComponent CDPropertyEntranceComponentTable::GetByID(uint32_t i
|
||||
|
||||
return defaultEntry;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user