Fix game freezing

Fixes #149
This commit is contained in:
Maurice Heumann 2023-02-16 18:50:01 +01:00
parent 5f55da1e0e
commit 09c1eb2a5f
2 changed files with 1 additions and 2 deletions

View File

@ -86,7 +86,6 @@ namespace game
0x1422D1360
};
WEAK symbol<void (void (*callback)(const dvar_t*, void*), void* userData)> Dvar_ForEach{ 0x1422BD760 };
WEAK symbol<int(const dvar_t* dvar)> Dvar_GetInt{0x1422BF2C0, 0x140575C20};
WEAK symbol<void(const char* dvarName, const char* string, bool createIfMissing)> Dvar_SetFromStringByName{
0x1422C7F60
};

View File

@ -24,6 +24,6 @@ namespace game
return {};
}
return Dvar_GetInt(dvar);
return dvar->current.integer;
}
}