mirror of https://github.com/odrling/Aegisub
Fix awesome variable shadowing derp
This commit is contained in:
parent
87851a76db
commit
bd259b7197
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue