Misc fixes.

This commit is contained in:
hondacrx
2022-10-28 21:58:31 -04:00
parent 4c392ae3f7
commit 572cdc1483
4 changed files with 13 additions and 10 deletions
+2 -2
View File
@@ -290,7 +290,7 @@ namespace Game.Entities
owner.RemovePet(null, PetSaveMode.NotInSlot);
var unslottedPetIndex = petStable.UnslottedPets.FindIndex(unslottedPet => unslottedPet.PetNumber == petInfoNumber);
Cypher.Assert(petStable.CurrentPetIndex == 0);
Cypher.Assert(!petStable.CurrentPetIndex.HasValue);
Cypher.Assert(unslottedPetIndex != -1);
petStable.SetCurrentUnslottedPetIndex((uint)unslottedPetIndex);
@@ -302,7 +302,7 @@ namespace Game.Entities
Cypher.Assert(activePetIndex != -1);
// Check that we either have no pet (unsummoned by player) or it matches temporarily unsummoned pet by server (for example on flying mount)
Cypher.Assert(petStable.CurrentPetIndex == 0 || petStable.CurrentPetIndex == activePetIndex);
Cypher.Assert(!petStable.CurrentPetIndex.HasValue || petStable.CurrentPetIndex == activePetIndex);
petStable.SetCurrentActivePetIndex((uint)activePetIndex);
}