1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Merge pull request #1684 from disarray2077/patch-1

Fix `Variant.Get<T>()` Crash
This commit is contained in:
Brian Fiete 2022-08-23 15:15:21 +02:00 committed by GitHub
commit ed60e27909
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -293,7 +293,7 @@ namespace System
obj = (T)Internal.UnsafeCastToObject(*(void**)(void*)mData);
else
obj = (T)Internal.UnsafeCastToObject((void*)mData);
Debug.Assert(obj.GetType().IsSubtypeOf(type));
Debug.Assert(obj == null || obj.GetType().IsSubtypeOf(type));
return obj;
}