feat(db): add getter for num records

This commit is contained in:
fallenoak 2023-02-19 15:24:55 -06:00
parent 9d83df95f9
commit eed060e512
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
4 changed files with 10 additions and 4 deletions

View file

@ -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) {