Fix awesome variable shadowing derp

This commit is contained in:
Thomas Goyne 2012-11-20 14:28:24 -08:00
parent 87851a76db
commit bd259b7197
1 changed files with 2 additions and 2 deletions

View File

@ -166,10 +166,10 @@ void paste_lines(agi::Context *c, bool paste_over) {
}
template<class T>
T get_value(AssDialogue const& line, int blockn, T initial, wxString const& tag, wxString alt = wxString()) {
T get_value(AssDialogue const& line, int blockn, T initial, wxString const& tag_name, wxString alt = wxString()) {
for (auto ovr : line.Blocks | boost::adaptors::reversed | agi::of_type<AssDialogueBlockOverride>()) {
for (auto tag : ovr->Tags | boost::adaptors::reversed) {
if (tag->Name == tag || tag->Name == alt)
if (tag->Name == tag_name || tag->Name == alt)
return tag->Params[0]->Get<T>(initial);
}
}