added safety for lua GetActivePath()
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user