forked from mirror/openmw-tes3mp
[Server] Fix Cell iterators
This commit is contained in:
parent
67b67ce1c4
commit
443c0ed309
2 changed files with 6 additions and 6 deletions
|
@ -212,12 +212,12 @@ Cell::Cell(ESM::Cell cell): cell(cell)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Cell::Iterator Cell::begin()
|
Cell::Iterator Cell::begin() const
|
||||||
{
|
{
|
||||||
return players.begin();
|
return players.begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
Cell::Iterator Cell::end()
|
Cell::Iterator Cell::end() const
|
||||||
{
|
{
|
||||||
return players.end();
|
return players.end();
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,10 +53,10 @@ class Cell
|
||||||
public:
|
public:
|
||||||
Cell(ESM::Cell cell);
|
Cell(ESM::Cell cell);
|
||||||
typedef std::deque<Player*> TPlayers;
|
typedef std::deque<Player*> TPlayers;
|
||||||
typedef TPlayers::iterator Iterator;
|
typedef TPlayers::const_iterator Iterator;
|
||||||
|
|
||||||
Iterator begin();
|
Iterator begin() const;
|
||||||
Iterator end();
|
Iterator end() const;
|
||||||
|
|
||||||
void addPlayer(Player *player);
|
void addPlayer(Player *player);
|
||||||
void removePlayer(Player *player);
|
void removePlayer(Player *player);
|
||||||
|
|
Loading…
Reference in a new issue