Improvements (#903)

This commit is contained in:
kizer 2022-06-29 18:51:40 +09:00 committed by GitHub
parent e9cd7e0273
commit 716736f022
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
55 changed files with 1809 additions and 872 deletions

View file

@ -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)