Fixed stupid issue with steam sync

This commit is contained in:
Linus Probert 2018-09-02 17:39:43 +02:00
parent 57b7831a45
commit b962d55510
1 changed files with 2 additions and 3 deletions

View File

@ -12,13 +12,12 @@ static CallbackHandler *m_CallbackHandler = NULL;
extern "C" int64_t extern "C" int64_t
c_SteamAPI_Init() c_SteamAPI_Init()
{ {
m_CallbackHandler = new CallbackHandler(m_AppId);
if (SteamAPI_Init()) { if (SteamAPI_Init()) {
m_AppId = SteamUtils()->GetAppID(); m_AppId = SteamUtils()->GetAppID();
m_Initiated = true; m_Initiated = true;
return m_AppId;
} }
return 0; m_CallbackHandler = new CallbackHandler(m_AppId);
return m_AppId;
} }
extern "C" int64_t extern "C" int64_t