check null and zero pointer in lambdas

This commit is contained in:
Gurge44 committed 2026-07-01 09:07:37 +02:00
1 parent a10e7ca345
commit e91b7f0847
6 files changed
+19 -5

No files matched your search

@@ -55,6 +55,8 @@ public sealed class PlayerGameOptionsSender(PlayerControl player) : GameOptionsS
public static DataFlagRateLimiter.QueuedAction SendAllImmediately()
{
if (AntiBlackout.SkipTasks) return null;
ForceWaitFrame = true;
if (PackedWriterMessages > 0 && PackedWriter != null)
@@ -262,6 +264,8 @@ public sealed class PlayerGameOptionsSender(PlayerControl player) : GameOptionsS
protected override void SendOptionsArray(Il2CppStructArray<byte> optionArray, byte logicOptionsIndex)
{
if (AntiBlackout.SkipTasks) return;
if (PackedWriter == null) // Single write
{
Logger.Info("Enqueue complete for single write", "SendOptionsArray");