fix: forgot to * the array of clients

This commit is contained in:
Diavolo 2023-04-03 21:51:30 +02:00 committed by Maurice Heumann
parent 9ffb5d6244
commit 45b1462dca
2 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ namespace dedicated_patches
uint64_t sv_get_player_xuid_stub(int client_num)
{
return static_cast<uint64_t>(game::svs_clients[client_num].xuid);
return static_cast<uint64_t>((*game::svs_clients)[client_num].xuid);
}
int sv_get_guid(int client_num)
@ -80,7 +80,7 @@ namespace dedicated_patches
return 0;
}
return game::svs_clients[client_num].xuid;
return (*game::svs_clients)[client_num].xuid;
}
}

View File

@ -190,7 +190,7 @@ namespace game
WEAK symbol<char> s_dvarPool{0x157AC6220, 0x14A3CB620};
WEAK symbol<int> g_dvarCount{0x157AC61CC, 0x14A3CB5FC};
WEAK symbol<client_s> svs_clients{0x0, 0x14A178E98};
WEAK symbol<client_s*> svs_clients{0x0, 0x14A178E98};
// Dvar variables
WEAK symbol<dvar_t*> com_maxclients{0x0, 0x14948EE70};