X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fstaticobject.h;h=208fb2cc86caf387cf1d9292d06e650d73892a9a;hb=4c654557ecc32620b78c146bd6d90f531a71d25a;hp=640747e96dbe3152823d02cb0d6a16444a6582d7;hpb=6a1670dbc31cc0e44178bbd9ad34ff0d5981a060;p=minetest.git diff --git a/src/staticobject.h b/src/staticobject.h index 640747e96..208fb2cc8 100644 --- a/src/staticobject.h +++ b/src/staticobject.h @@ -23,7 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "irrlichttypes_bloated.h" #include #include -#include +#include #include #include "debug.h" @@ -54,7 +54,7 @@ class StaticObjectList public: /* Inserts an object to the container. - Id must be unique or 0. + Id must be unique (active) or 0 (stored). */ void insert(u16 id, StaticObject obj) { @@ -68,8 +68,7 @@ class StaticObjectList { dstream<<"ERROR: StaticObjectList::insert(): " <<"id already exists"< m_stored; + std::vector m_stored; std::map m_active; private: