Add debug tab for meta changes (pretty useless...) and maybe fix reset problem.

This commit is contained in:
Ottermandias 2022-09-24 15:16:03 +02:00
parent b7b15532f8
commit b359c18360
4 changed files with 37 additions and 7 deletions

View file

@ -160,7 +160,7 @@ public unsafe partial class PathResolver
var ret = _characterBaseCreateHook.Original( a, b, c, d );
using( meta )
{
if( LastGameObject != null )
if( LastGameObject != null && ret != IntPtr.Zero )
{
_drawObjectToObject[ ret ] = ( _lastCreatedCollection!, LastGameObject->ObjectIndex );
CreatedCharacterBase?.Invoke( ( IntPtr )LastGameObject, _lastCreatedCollection!.ModCollection, ret );