From ecfaecd7f98af4da06f6a1641c10836afebe5f48 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Mon, 22 Apr 2024 22:27:49 +0200 Subject: [PATCH] fix sync on sender less messages (rare crash) --- src/solanaceae/zox/ngc_hs.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/solanaceae/zox/ngc_hs.cpp b/src/solanaceae/zox/ngc_hs.cpp index 53d4dcb..96ab4b1 100644 --- a/src/solanaceae/zox/ngc_hs.cpp +++ b/src/solanaceae/zox/ngc_hs.cpp @@ -99,6 +99,10 @@ float ZoxNGCHistorySync::tick(float delta) { continue; } + if (!reg.all_of(msg_e)) { + std::cerr << "ZOX NGCHS error: msg without sender\n"; + continue; + } const auto& msg_sender = reg.get(msg_e).c; if (!_cr.all_of(msg_sender)) {