Changeset 9557f92 in network-game for common/MessageProcessor.cpp


Ignore:
Timestamp:
Jul 16, 2013, 12:22:20 AM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
bd2502a
Parents:
af713bc
Message:

Fixed cleanAckedMessages so it compiles on linux as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/MessageProcessor.cpp

    raf713bc r9557f92  
    6161   while (it != sentMessages.end()) {
    6262      if (it->second.isAcked && (getCurrentMillis() - it->second.timeAcked) > 1000)
    63          it = sentMessages.erase(it);
     63         sentMessages.erase(it++);
    6464      else
    6565         it++;
Note: See TracChangeset for help on using the changeset viewer.