Merge remote-tracking branch 'origin/master' into 1.6

This commit is contained in:
Wojtek Figat
2023-06-11 21:38:20 +02:00
20 changed files with 212 additions and 93 deletions

View File

@@ -156,7 +156,7 @@ public:
template<typename T>
static T* Cast(ScriptingObject* obj)
{
return obj && CanCast(obj->GetClass(), T::GetStaticClass()) ? (T*)obj : nullptr;
return obj && CanCast(obj->GetClass(), T::GetStaticClass()) ? static_cast<T*>(obj) : nullptr;
}
bool Is(const ScriptingTypeHandle& type) const;