Fix SP name

This commit is contained in:
Federico Cecchetto 2022-02-26 21:58:04 +01:00
parent 7cd2cfe8f3
commit d9a3dbff56

View File

@ -7,7 +7,13 @@ namespace steam
{
const char* friends::GetPersonaName()
{
return game::Dvar_FindVar("name")->current.string;
static const auto* name = game::Dvar_FindVar("name");
if (name)
{
return name->current.string;
}
return "1337";
}
unsigned long long friends::SetPersonaName(const char* pchPersonaName)