Maybe fix crashes.

This commit is contained in:
Ottermandias 2021-08-14 21:11:16 +02:00
parent afcb481dd2
commit 2ebbb227f7

View file

@ -189,6 +189,11 @@ namespace Penumbra.PlayerWatch
private void OnFrameworkUpdate( object framework )
{
if( _pi.ClientState.LocalPlayer == null )
{
return;
}
var actors = _pi.ClientState.Actors;
var newInGPose = actors[ GPosePlayerActorIdx ] != null;