mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 18:27:24 +01:00
add failsafe to GetPet
This commit is contained in:
parent
126f2b8084
commit
46cbd427d3
1 changed files with 1 additions and 0 deletions
|
|
@ -121,6 +121,7 @@ public class DalamudUtilService : IHostedService
|
|||
{
|
||||
var mgr = CharacterManager.Instance();
|
||||
playerPointer ??= PlayerPointer;
|
||||
if(playerPointer == IntPtr.Zero) return IntPtr.Zero;
|
||||
return (IntPtr)mgr->LookupPetByOwnerObject((BattleChara*)playerPointer);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue