Skip to content

PlayerTemplate: Use std::deque instead of std::vector for PlayerTemplateVector - #73

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/deque-player-template
Open

PlayerTemplate: Use std::deque instead of std::vector for PlayerTemplateVector#73
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/deque-player-template

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-FJ. The issue was that: Vector reallocation invalidated PlayerTemplate pointers, causing AsciiString copy constructor to dereference corrupted internal data.

  • Replaced std::vector with std::deque for PlayerTemplateVector in PlayerTemplate.h and GeneralsMD/Code/GameEngine/Include/Common/PlayerTemplate.h.
  • Added #include <deque> in STLTypedefs.h and GeneralsMD/Code/GameEngine/Include/Common/STLTypedefs.h.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 1905914

Not quite right? Click here to continue debugging with Seer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants