mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-13 12:44:14 +01:00
use DrawObject instead of GetDrawObject
This commit is contained in:
parent
4c88e0e249
commit
c131561418
1 changed files with 2 additions and 2 deletions
|
|
@ -142,7 +142,7 @@ public sealed class GameObjectHandler : DisposableMediatorSubscriberBase
|
|||
{
|
||||
if (curPtr != IntPtr.Zero)
|
||||
{
|
||||
var drawObjAddr = (IntPtr)((GameObject*)curPtr)->GetDrawObject();
|
||||
var drawObjAddr = (IntPtr)((GameObject*)curPtr)->DrawObject;
|
||||
drawObjDiff = drawObjAddr != DrawObjectAddress;
|
||||
DrawObjectAddress = drawObjAddr;
|
||||
}
|
||||
|
|
@ -263,7 +263,7 @@ public sealed class GameObjectHandler : DisposableMediatorSubscriberBase
|
|||
|
||||
private unsafe IntPtr GetDrawObj(nint curPtr)
|
||||
{
|
||||
return (IntPtr)((GameObject*)curPtr)->GetDrawObject();
|
||||
return (IntPtr)((GameObject*)curPtr)->DrawObject;
|
||||
}
|
||||
|
||||
private unsafe bool IsBeingDrawn(IntPtr drawObj, IntPtr curPtr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue