From bd3cf6e2cf08af63673897017f4bbbb1df3b3c00 Mon Sep 17 00:00:00 2001 From: firecoperana Date: Sun, 22 Feb 2026 17:45:42 -0600 Subject: [PATCH] server: fix crash from adaptive p --- common/sampling.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/sampling.cpp b/common/sampling.cpp index bbe8b37a..e631e690 100644 --- a/common/sampling.cpp +++ b/common/sampling.cpp @@ -143,6 +143,9 @@ void common_sampler_reset(common_sampler * ctx) { } void common_sampler_review(common_sampler * ctx) { + if (!ctx->adapt_p_ctx) { + return; + } const bool record = ctx->record_samplers; const bool rewind = ctx->rewind_samplers;