mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-26 11:38:02 +02:00
Lib fixes
This commit is contained in:
parent
36d2bb69f5
commit
11bc782835
2 changed files with 9 additions and 3 deletions
|
@ -82,7 +82,7 @@ namespace System
|
|||
}
|
||||
}
|
||||
|
||||
class RefCounted<T> : IRefCounted where T : class, delete
|
||||
class RefCounted<T> : IRefCounted where T : delete
|
||||
{
|
||||
public T mVal;
|
||||
public int mRefCount = 1;
|
||||
|
@ -178,7 +178,7 @@ namespace System
|
|||
public virtual T Detach()
|
||||
{
|
||||
var val = mVal;
|
||||
mVal = null;
|
||||
mVal = default;
|
||||
return val;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue