Fix for examine actor being gone deleting temporary profile for original actor

This commit is contained in:
RisaDev
2024-04-11 00:49:09 +03:00
parent bfbfb65925
commit 5a345c9828
2 changed files with 11 additions and 1 deletions

View File

@@ -145,6 +145,7 @@ public partial class CustomizePlusIpc
[EzIPC("Profile.SetTemporaryProfileOnCharacter")]
private (int, Guid?) SetTemporaryProfileOnCharacter(Character character, string profileJson)
{
//todo: do not allow to set temporary profile on reserved actors (examine, etc)
if (character == null)
return ((int)ErrorCode.InvalidCharacter, null);