mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Check for drawObject != null before invoking draw object created event.
This commit is contained in:
parent
0dbe9b59c2
commit
b985833aaa
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ public unsafe class MetaState : IDisposable
|
|||
{
|
||||
_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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue