1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Use std::vector instead of std::list in StaticObjectList and MutexedMap::getValues()

This commit is contained in:
Loic Blot 2015-03-04 17:18:57 +01:00
parent 06f328207f
commit cd684497c2
5 changed files with 12 additions and 15 deletions

View file

@ -249,8 +249,8 @@ public:
virtual ~CItemDefManager()
{
#ifndef SERVER
const std::list<ClientCached*> &values = m_clientcached.getValues();
for(std::list<ClientCached*>::const_iterator
const std::vector<ClientCached*> &values = m_clientcached.getValues();
for(std::vector<ClientCached*>::const_iterator
i = values.begin(); i != values.end(); ++i)
{
ClientCached *cc = *i;