From 11a5354e678f616b1781810cc99614d2ff98f77b Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Mon, 8 Jun 2026 10:09:40 +0100 Subject: [PATCH] convex shape error reading an int in scanf into a bool causes issues, could be the compile options being more strict about inlining and the precompiled headers Also precompiled header for sceneObject since build insights saw it as the most expensive header. --- Engine/source/CMakeLists.txt | 1 + Engine/source/T3D/convexShape.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Engine/source/CMakeLists.txt b/Engine/source/CMakeLists.txt index d19ad8dfa..b5a5acab5 100644 --- a/Engine/source/CMakeLists.txt +++ b/Engine/source/CMakeLists.txt @@ -782,6 +782,7 @@ target_precompile_headers(${TORQUE_APP_NAME} PRIVATE "console/engineObject.h" + "scene/sceneObject.h" ) if(TORQUE_TESTING) diff --git a/Engine/source/T3D/convexShape.cpp b/Engine/source/T3D/convexShape.cpp index 1034c474f..a0b8e0628 100644 --- a/Engine/source/T3D/convexShape.cpp +++ b/Engine/source/T3D/convexShape.cpp @@ -211,7 +211,7 @@ bool ConvexShape::protectedSetSurface( void *object, const char *index, const ch Point2F offset; Point2F scale; F32 rot = 0; - bool horz = true, vert = true; + S32 horz = 0, vert = 0; /* dSscanf( data, "%g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g",