diff --git a/include/sol/usertype_container.hpp b/include/sol/usertype_container.hpp index 6d25d2a8..3ff81724 100644 --- a/include/sol/usertype_container.hpp +++ b/include/sol/usertype_container.hpp @@ -1189,7 +1189,7 @@ namespace sol { static int next_associative(std::true_type, lua_State* L_) { iter& i = stack::unqualified_get>(L_, 1); auto& it = i.it(); - auto& end = i.end(); + auto& end = i.sen(); if (it == end) { return stack::push(L_, lua_nil); }