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:
commit
ed60e27909
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue