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:
parent
06f328207f
commit
cd684497c2
5 changed files with 12 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue