Skip to content

Commit bb0dedb

Browse files
committed
Add missing PopPrimitive overload for std::size_t
1 parent 6e640ab commit bb0dedb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Shared/mods/deathmatch/logic/lua/LuaBasic.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ namespace lua
7272
return static_cast<unsigned int>(lua_tonumber(L, index++));
7373
}
7474

75+
template <>
76+
std::size_t PopPrimitive<std::size_t>(lua_State* L, std::size_t& index)
77+
{
78+
return static_cast<std::size_t>(lua_tonumber(L, index++));
79+
}
80+
7581
template <>
7682
float PopPrimitive<float>(lua_State* L, std::size_t& index)
7783
{

0 commit comments

Comments
 (0)