Avoided costly roundtrip through strings.

This commit is contained in:
Guillaume Melquiond 2010-07-17 13:17:49 +00:00
parent 4a9c477f9a
commit a34863edf7

View File

@ -654,7 +654,7 @@ void unit_animation::add_anims( std::vector<unit_animation> & animations, const
if (anim["missile_offset"].empty()) anim["missile_offset"] = "0~0.8";
if (anim["missile_layer"].empty()) anim["missile_layer"] = missile_layer;
config tmp;
tmp["duration"]="1";
tmp["duration"] = 1;
anim.add_child("missile_frame", tmp);
anim.add_child_at("missile_frame", tmp, 0);
}