larku / RakNet

RakNet is a cross platform, open source, C++ networking engine for game programmers.
Other
60 stars 27 forks source link

Fix undefined behaviour in DebugTools.cpp #21

Closed larku closed 9 years ago

larku commented 9 years ago

This commit replaces a call to fflush(stdin) with std::cin.ignore() since calling fflush on an input stream is undefined behaviour and should be avoided.