Skip to content

Commit

Permalink
More argument order fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
momo5502 committed Oct 3, 2023
1 parent a5a1b87 commit 7fecf90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/momo/html_ui.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ namespace momo
template <typename T>
static T resolve_html_value(const std::vector<html_value>& args, size_t& index)
{
const auto current_index = ++index;
return args.at(args.size() - current_index).as<T>();
const auto current_index = index++;
return args.at(current_index).as<T>();
}

template <typename F, typename Return, typename... Args>
Expand Down

0 comments on commit 7fecf90

Please sign in to comment.