mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-01 00:45:26 +02:00
lib now uses shared_ptr for entities. Removed manual memory management.
This commit is contained in:
@ -164,7 +164,7 @@ const CCreature & BattleProjectileController::getShooter(const CStack * stack) c
|
||||
if(creature->animation.missleFrameAngles.empty())
|
||||
{
|
||||
logAnim->error("Mod error: Creature '%s' on the Archer's tower is not a shooter. Mod should be fixed. Trying to use archer's data instead...", creature->getNameSingularTranslated());
|
||||
creature = CGI->creh->objects[CreatureID::ARCHER];
|
||||
creature = CreatureID(CreatureID::ARCHER).toCreature();
|
||||
}
|
||||
|
||||
return *creature;
|
||||
|
Reference in New Issue
Block a user