fix movement animations filtering on terrain

This commit is contained in:
Dominic Bolin 2006-04-13 16:07:14 +00:00
parent 278e45c3ae
commit a60c0e94be

View file

@ -166,7 +166,7 @@ int death_animation::matches(const attack_type* attack) const
}
movement_animation::movement_animation(const config& cfg)
:unit_animation(cfg), terrain_types(utils::split(cfg["terrain_type"]))
:unit_animation(cfg), terrain_types(utils::split(cfg["terrain"]))
{
const std::vector<std::string>& my_directions = utils::split(cfg["direction"]);
for(std::vector<std::string>::const_iterator i = my_directions.begin(); i != my_directions.end(); ++i) {