Compare commits

...

1 Commits
0.7.0 ... deque

Author SHA1 Message Date
Marc Zinnschlag c87b2aa072 use deque instead of list to store references in cells 10 years ago

@ -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

@ -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);

Loading…
Cancel
Save