Skip to content

Commit

Permalink
Check for drawObject != null before invoking draw object created event.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ottermandias committed Sep 2, 2023
1 parent 0dbe9b5 commit b985833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Penumbra/Interop/PathResolving/MetaState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ private void OnCharacterBaseCreated(uint _1, nint _2, nint _3, nint drawObject)
{
_characterBaseCreateMetaChanges.Dispose();
_characterBaseCreateMetaChanges = DisposableContainer.Empty;
if (_lastCreatedCollection.Valid && _lastCreatedCollection.AssociatedGameObject != nint.Zero)
if (_lastCreatedCollection.Valid && _lastCreatedCollection.AssociatedGameObject != nint.Zero && drawObject != nint.Zero)
_communicator.CreatedCharacterBase.Invoke(_lastCreatedCollection.AssociatedGameObject,
_lastCreatedCollection.ModCollection, drawObject);
_lastCreatedCollection = ResolveData.Invalid;
Expand Down

0 comments on commit b985833

Please sign in to comment.