aboutsummaryrefslogtreecommitdiff
path: root/src/magic.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-10-12 17:38:12 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-10-12 17:38:12 -0300
commitb9124b049a47323cafa8807db4d501fb32a53297 (patch)
tree0eb2778a68c5511a06632146c457ec7fee07f161 /src/magic.cc
parent60531bf63e9d93535e6d7ea5201a708392e738f6 (diff)
downloadgame-b9124b049a47323cafa8807db4d501fb32a53297.tar.gz
game-b9124b049a47323cafa8807db4d501fb32a53297.zip
fix problem with outfit comparisons - fixes #39
Diffstat (limited to 'src/magic.cc')
-rw-r--r--src/magic.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/magic.cc b/src/magic.cc
index f7fbe70..c069b68 100644
--- a/src/magic.cc
+++ b/src/magic.cc
@@ -2344,7 +2344,7 @@ void Invisibility(TCreature *Actor, int ManaPoints, int SoulPoints, int Duration
}
CheckMana(Actor, ManaPoints, SoulPoints, 1000);
- Actor->Outfit = TOutfit{};
+ Actor->Outfit = TOutfit::Invisible();
Actor->SetTimer(SKILL_ILLUSION, 1, Duration, Duration, -1);
GraphicalEffect(Actor->posx, Actor->posy, Actor->posz, EFFECT_MAGIC_BLUE);
}
@@ -2496,7 +2496,7 @@ void ObjectIllusion(TCreature *Actor, int ManaPoints, int SoulPoints, Object Tar
CheckMana(Actor, ManaPoints, SoulPoints, 1000);
if(Actor->Skills[SKILL_ILLUSION]->Get() == 0){
Actor->Outfit.OutfitID = 0;
- Actor->Outfit.ObjectType = (uint16)TargetType.getDisguise().TypeID;
+ Actor->Outfit.ObjectType = TargetType.getDisguise().TypeID;
Actor->SetTimer(SKILL_ILLUSION, 1, Duration, Duration, -1);
}