From 5bb1ff6cbe355952ade6db3819abb92623a75da5 Mon Sep 17 00:00:00 2001 From: T1ti <40864460+T1ti@users.noreply.github.com> Date: Sun, 20 Oct 2024 01:37:01 +0200 Subject: [PATCH] compile fixes --- src/math/bounding_box.cpp | 1 + src/math/ray.hpp | 2 +- src/noggit/ui/tools/LightEditor/LightEditor.hpp | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/math/bounding_box.cpp b/src/math/bounding_box.cpp index 41cae906..650b434a 100755 --- a/src/math/bounding_box.cpp +++ b/src/math/bounding_box.cpp @@ -2,6 +2,7 @@ #include #include +#include namespace { diff --git a/src/math/ray.hpp b/src/math/ray.hpp index 36c14328..25f22f1b 100755 --- a/src/math/ray.hpp +++ b/src/math/ray.hpp @@ -13,7 +13,7 @@ namespace math { if (std::isnan(_direction.x) || std::isnan(_direction.y) || std::isnan(_direction.z)) { - std::cout << "Vector contains NaN values!" << std::endl; + assert(false); } } diff --git a/src/noggit/ui/tools/LightEditor/LightEditor.hpp b/src/noggit/ui/tools/LightEditor/LightEditor.hpp index d3878149..b2e745e9 100755 --- a/src/noggit/ui/tools/LightEditor/LightEditor.hpp +++ b/src/noggit/ui/tools/LightEditor/LightEditor.hpp @@ -49,6 +49,8 @@ namespace Noggit::Ui::Tools static std::unordered_map light_names_map; + class LightEditor; + class LightningInfoDialog : public QWidget { Q_OBJECT