diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-08-29 21:13:23 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-08-29 21:13:23 +0000 |
commit | ed6e43cbbe1e9a93fb58eccbbec1d377f094d73e (patch) | |
tree | 292a6d7176f09453f6aaf5077a8570328ba7acea /src/engine.cpp | |
parent | 91705f88735b8efdbf263a22ef02c1b87c964b5b (diff) | |
download | mana-ed6e43cbbe1e9a93fb58eccbbec1d377f094d73e.tar.gz mana-ed6e43cbbe1e9a93fb58eccbbec1d377f094d73e.tar.bz2 mana-ed6e43cbbe1e9a93fb58eccbbec1d377f094d73e.tar.xz mana-ed6e43cbbe1e9a93fb58eccbbec1d377f094d73e.zip |
Updated NEWS file and made getAll return a reference instead of a pointer.
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index 557b5d7e..868454d4 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -275,8 +275,8 @@ void Engine::draw(Graphics *graphics) } // Draw player nickname, speech, and emotion sprite as needed - Beings *beings = beingManager->getAll(); - for (BeingIterator i = beings->begin(); i != beings->end(); i++) + Beings &beings = beingManager->getAll(); + for (BeingIterator i = beings.begin(); i != beings.end(); i++) { (*i)->drawSpeech(graphics, -(int)view_x, -(int)view_y); (*i)->drawName(graphics, -(int)view_x, -(int)view_y); |