Merge pull request #74 from XLabsProject/fix/script-error-on-dedicated

Do not interrupt gameplay for GSC errors
This commit is contained in:
Dss0 2021-05-05 13:20:38 +02:00 committed by GitHub
commit fec16c179a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -548,7 +548,7 @@ namespace Components
{
int developer = Dvar::Var("developer").get<int>();
if (developer > 0)
if (developer > 0 && Dedicated::IsEnabled())
Utils::Hook::Set<BYTE>(0x48D8C7, 0x75);
});