Oops, fix NRE crash

This commit is contained in:
Evil Factory
2026-04-10 21:56:39 -03:00
parent df8bfb1807
commit f97c00195c

View File

@@ -92,7 +92,7 @@ namespace Barotrauma
internal set
{
_isCsEnabledForSession?.TrySetValue(value);
ConfigService.SaveConfigValue(_isCsEnabledForSession);
if (_isCsEnabledForSession != null) { ConfigService.SaveConfigValue(_isCsEnabledForSession); }
}
}