mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-26 10:29:18 +01:00
Improvements (#903)
This commit is contained in:
parent
e9cd7e0273
commit
716736f022
55 changed files with 1809 additions and 872 deletions
|
|
@ -97,9 +97,9 @@ namespace Dalamud.Game.ClientState.Objects
|
|||
/// <returns><see cref="GameObject"/> object or inheritor containing the requested data.</returns>
|
||||
public unsafe GameObject? CreateObjectReference(IntPtr address)
|
||||
{
|
||||
var clientState = Service<ClientState>.Get();
|
||||
var clientState = Service<ClientState>.GetNullable();
|
||||
|
||||
if (clientState.LocalContentId == 0)
|
||||
if (clientState == null || clientState.LocalContentId == 0)
|
||||
return null;
|
||||
|
||||
if (address == IntPtr.Zero)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue