1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 19:45:38 +00:00

use deque instead of list to store references in cells

This commit is contained in:
Marc Zinnschlag 2014-10-14 15:13:38 +02:00
parent 7d35199396
commit c87b2aa072
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
#ifndef GAME_MWWORLD_CELLREFLIST_H
#define GAME_MWWORLD_CELLREFLIST_H
#include <list>
#include <deque>
#include "livecellref.hpp"
@ -12,7 +12,7 @@ namespace MWWorld
struct CellRefList
{
typedef LiveCellRef<X> LiveRef;
typedef std::list<LiveRef> List;
typedef std::deque<LiveRef> List;
List mList;
/// Search for the given reference in the given reclist from

View file

@ -150,7 +150,7 @@ namespace MWWorld
if (const X *ptr = store.search (ref.mRefID))
{
typename std::list<LiveRef>::iterator iter =
typename List::iterator iter =
std::find(mList.begin(), mList.end(), ref.mRefNum);
LiveRef liveCellRef (ref, ptr);