This commit is contained in:
Gray
2024-03-15 19:35:51 -04:00
parent 0f6a279420
commit 496e452160
5 changed files with 9 additions and 44 deletions

View File

@@ -122,8 +122,8 @@ static inline UObject* GetLocalPlayerController()
return LocalPlayer->Get(PlayerControllerOffset);
}
template <typename T>
static __forceinline T* Cast(UObject* Object, bool bCheckType = true)
template <typename T, bool bCheckType = true>
static __forceinline T* Cast(UObject* Object)
{
if (bCheckType)
{