mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-20 21:14:56 +03:00
feat(db): add getter for num records
This commit is contained in:
4 files changed
+10
-4
No files matched your search
@@ -215,7 +215,7 @@ int32_t Script_GetServerName(lua_State* L) {
|
||||
auto down = true;
|
||||
|
||||
if (selectedRealm) {
|
||||
for (int32_t i = 0; i < g_cfg_ConfigsDB.m_numRecords; i++) {
|
||||
for (int32_t i = 0; i < g_cfg_ConfigsDB.GetNumRecords(); i++) {
|
||||
auto config = g_cfg_ConfigsDB.GetRecordByIndex(i);
|
||||
|
||||
if (config->m_realmType == selectedRealm->type) {
|
||||
|
||||
@@ -137,7 +137,7 @@ int32_t Script_GetRealmInfo(lua_State* L) {
|
||||
int32_t realmIsPvp = 0;
|
||||
int32_t realmIsRp = 0;
|
||||
|
||||
for (int32_t i = 0; i < g_cfg_ConfigsDB.m_numRecords; i++) {
|
||||
for (int32_t i = 0; i < g_cfg_ConfigsDB.GetNumRecords(); i++) {
|
||||
auto config = g_cfg_ConfigsDB.GetRecordByIndex(i);
|
||||
|
||||
if (config->m_realmType == realmInfo->type) {
|
||||
|
||||
Reference in new issue
Block a user