sciencefyll

Untitled

Apr 18th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. for (auto& i : menu)
  2.         {
  3.             int timeout = i.second.timeout;
  4.             if (timeout > 0)
  5.             {
  6.                 i.second.timeout -= 1;
  7.             }
  8.             else if (timeout == 0)
  9.             {
  10.                 menu.erase(i.first);
  11.             }
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment