mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Maybe prevent weird GetName crashes.
This commit is contained in:
parent
c527d19117
commit
d908f22a17
1 changed files with 2 additions and 2 deletions
|
|
@ -552,8 +552,8 @@ public class IpcTester : IDisposable
|
|||
private static unsafe string GetObjectName(IntPtr gameObject)
|
||||
{
|
||||
var obj = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)gameObject;
|
||||
var name = obj != null ? obj->GetName() : null;
|
||||
return name != null ? new ByteString(name).ToString() : "Unknown";
|
||||
var name = obj != null ? obj->Name : null;
|
||||
return name != null && *name != 0 ? new ByteString(name).ToString() : "Unknown";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue