From c3e4588afc129611f1b9a22e3f8a0890cdbe0637 Mon Sep 17 00:00:00 2001 From: jyelon Date: Fri, 6 May 2022 15:50:07 -0400 Subject: [PATCH] Fix silly assert in world-core --- luprex/core/cpp/world-core.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/luprex/core/cpp/world-core.cpp b/luprex/core/cpp/world-core.cpp index 7197a1b9..a4938b5e 100644 --- a/luprex/core/cpp/world-core.cpp +++ b/luprex/core/cpp/world-core.cpp @@ -725,7 +725,9 @@ void World::guard_nopredict(lua_State *L, const char *fn) { } void World::schedule(int64_t clk, int64_t thid, int64_t plid) { - assert(is_authoritative()); + if (clk > 0) { + assert(is_authoritative()); + } thread_sched_.add(clk, thid, plid); }