Closed hide1202 closed 8 years ago
@hide1202 you coudl just replace m_receiveCallbacks.RemoveAt(i);
with m_receiveCallbacks.RemoveAt(i--);
@AgentFire I considered a backwards loop. But it is improved readability to use 'RemoveAll'. If you worry about performance, I can change this code to a backwards loop.
If matched callback was existed near m_receiveCallbacks.count in m_receiveCallbacks, this code execute unnecessary statement. And i think that goto statement should avoid if possible.