added safety for lua GetActivePath()

This commit is contained in:
Turánszki János
2026-01-19 13:59:04 +01:00
parent 90228d22b1
commit 851ca91de4
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -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)
+1 -1
View File
@@ -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);