mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
check null and zero pointer in lambdas
This commit is contained in:
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");
|
||||
|
||||
Reference in new issue
Block a user