Anonymous | Login | Signup for a new account | 2024-04-25 13:01 UTC |
My View | View Issues | Change Log | Roadmap | All Projects Issue Support Ranking | Rules | My Account |
View Revisions: Issue #3314 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0003314: The ticbuffer isn't completely processed in some cases | ||
Revision | 2017-10-28 01:09 by Leonard | ||
Description | The loop that is supposed to process it is wrong:for ( unsigned int i = 0; i < g_aClients[ulIdx].MoveCMDs.Size(); ++i ) As you can see, i increases each step however Size() decreases since we deleted one entry from the TArray. This becomes problematic if for example there are 2 movement commands left in the buffer, only one will be processed and then the condition (i < Size()) will no longer be true. |
||
Revision | 2017-10-28 01:06 by Leonard | ||
Description | The loop that is supposed to process it is wrong:for ( unsigned int i = 0; i < g_aClients[ulIdx].MoveCMDs.Size(); ++i ) As you can see, i increases each step however Size() decreases since we deleted one entry from the TArray. This becomes problematic if for example there are 2 movement commands left in the buffer, only one will be processed and then the condition (i < Size()) will no longer be true. |
Copyright © 2000 - 2024 MantisBT Team |