From 851ca91de4f8f574fa0f9cc4cbaaa918675e3a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tur=C3=A1nszki=20J=C3=A1nos?= Date: Mon, 19 Jan 2026 13:59:04 +0100 Subject: [PATCH] added safety for lua GetActivePath() --- WickedEngine/wiApplication_BindLua.cpp | 5 +++++ WickedEngine/wiVersion.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/WickedEngine/wiApplication_BindLua.cpp b/WickedEngine/wiApplication_BindLua.cpp index 4e4280803..4566ea879 100644 --- a/WickedEngine/wiApplication_BindLua.cpp +++ b/WickedEngine/wiApplication_BindLua.cpp @@ -59,6 +59,11 @@ namespace wi::lua } wi::RenderPath* renderpath = component->GetActivePath(); + if (renderpath == nullptr) + { + wi::lua::SError(L, "GetActivePath() returned null! No path was registered yet!"); + return 0; + } //return 3d component if the active one is of that type if (renderpath->GetScriptBindingID() == wi::RenderPath3D::script_check_identifier) diff --git a/WickedEngine/wiVersion.cpp b/WickedEngine/wiVersion.cpp index a09ce1105..40793ce28 100644 --- a/WickedEngine/wiVersion.cpp +++ b/WickedEngine/wiVersion.cpp @@ -9,7 +9,7 @@ namespace wi::version // minor features, major updates, breaking compatibility changes const int minor = 72; // minor bug fixes, alterations, refactors, updates - const int revision = 11; + const int revision = 12; const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);