mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2026-04-21 17:35:56 +08:00
fix
This commit is contained in:
parent
b1244e42a0
commit
b01b406e9e
@ -32,6 +32,7 @@ namespace DCFApixels.DragonECS.Core.Internal
|
||||
}
|
||||
internal static HandlerDebugInfo[] CreateCurrentHandlersList_Debug()
|
||||
{
|
||||
#if DEBUG
|
||||
var result = new HandlerDebugInfo[_idDispenser.Count];
|
||||
int i = 0;
|
||||
foreach (var id in _idDispenser)
|
||||
@ -40,6 +41,9 @@ namespace DCFApixels.DragonECS.Core.Internal
|
||||
}
|
||||
SortHalper.SortBy<HandlerDebugInfo, ulong>(result, o => o.increment);
|
||||
return result;
|
||||
#else
|
||||
return Array.Empty<HandlerDebugInfo>();
|
||||
#endif
|
||||
}
|
||||
|
||||
#region AllocAndInit
|
||||
@ -171,7 +175,9 @@ namespace DCFApixels.DragonECS.Core.Internal
|
||||
// id = _idDispenser.UseFree();
|
||||
// }
|
||||
//#endif
|
||||
#if DEBUG
|
||||
var id = target.GetHandledPtr()->ID;
|
||||
#endif
|
||||
|
||||
Meta* newHandledPtr = (Meta*)Marshal.ReAllocHGlobal(
|
||||
(IntPtr)target.GetHandledPtr(),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user