From efc294cc39a4d77f008c0363d57512be1f3ca1af Mon Sep 17 00:00:00 2001 From: firecoperana <18252262+firecoperana@users.noreply.github.com> Date: Mon, 23 Feb 2026 00:25:52 -0600 Subject: [PATCH] server: fix crash from adaptive p (#1304) Co-authored-by: firecoperana --- 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;