NSM: fix HUUUUUUUGE GAMEBREAKING BUG

This commit is contained in:
neon 2019-06-04 20:31:39 +02:00
parent ea8e9f62fa
commit 6632f5bdc4
2 changed files with 2 additions and 2 deletions

View File

@ -350,5 +350,5 @@ public int Native_GetPlayerType(Handle hPlugin, int numParams)
if(SteamClientAuthenticated(sAuthID)) if(SteamClientAuthenticated(sAuthID))
return SetNativeString(2, "SteamLegit", length + 1); return SetNativeString(2, "SteamLegit", length + 1);
return SetNativeString(2, "NoAuth", length + 1); return !SetNativeString(2, "NoAuth", length + 1);
} }

View File

@ -329,5 +329,5 @@ public int Native_GetPlayerType(Handle hPlugin, int numParams)
char[] sPlayerType = new char[length + 1]; char[] sPlayerType = new char[length + 1];
RevEmu_GetPlayerType(client, sPlayerType, length + 1); RevEmu_GetPlayerType(client, sPlayerType, length + 1);
return SetNativeString(2, sPlayerType, length + 1); return !SetNativeString(2, sPlayerType, length + 1);
} }