diff --git a/apps/openmw-mp/Players.cpp b/apps/openmw-mp/Players.cpp index 1e34d30c7..8b305b3bc 100644 --- a/apps/openmw-mp/Players.cpp +++ b/apps/openmw-mp/Players.cpp @@ -18,6 +18,10 @@ void Players::Init(LuaState &lua) for (shared_ptr player : store) func(player); }); + + playersTable.set_function("size", [](){ + return store.size(); + }); }