diff options
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index ca0f11551..0422570d7 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -540,7 +540,7 @@ void ChatWindow::doPresent() int playercount = 0; for (ActorSpritesConstIterator it = actors.begin(), it_end = actors.end(); - it != it_end; it++) + it != it_end; ++it) { if ((*it)->getType() == ActorSprite::PLAYER) { @@ -654,7 +654,7 @@ void ChatWindow::keyPressed(gcn::KeyEvent &event) mCurHist != mHistory.begin() && !mHistory.empty()) { // Move backward through the history - mCurHist--; + --mCurHist; mChatInput->setText(*mCurHist); mChatInput->setCaretPosition(static_cast<unsigned>( mChatInput->getText().length())); |