From 03ca1dcfb0c7574aa2d221f5685d48c70378e3c8 Mon Sep 17 00:00:00 2001 From: MarcroSoft Date: Thu, 16 Jul 2026 15:30:38 +0200 Subject: [PATCH] Fix build with AS_NO_COMPILER hasCachedKnownTypes is declared inside the #ifndef AS_NO_COMPILER block in as_builder.h but was initialized unconditionally in the asCBuilder constructor, causing a compile error (C2065 on MSVC) when building with AS_NO_COMPILER defined. Guard the initialization like the one in asCBuilder::Reset(). Co-Authored-By: Claude Fable 5 --- sdk/angelscript/source/as_builder.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/angelscript/source/as_builder.cpp b/sdk/angelscript/source/as_builder.cpp index a073e7d7..90bdfc26 100644 --- a/sdk/angelscript/source/as_builder.cpp +++ b/sdk/angelscript/source/as_builder.cpp @@ -87,7 +87,9 @@ asCBuilder::asCBuilder(asCScriptEngine *_engine, asCModule *_module) silent = false; numWarnings = 0; numErrors = 0; +#ifndef AS_NO_COMPILER hasCachedKnownTypes = false; +#endif } asCBuilder::~asCBuilder()