1

Topic: [PROBLEM] Vector memory issue

Hello,
I'm working on my another TW modification.
I've put a vector to a struct inside the CGameContext class. In the SendChatTarget(), I push back some data into it. When the method finishes, there's nothing in the vector (its size is 0, it's empty).

Here are my files:
https://github.com/kikiw/Teeworlds-Mod/ … ontext.cpp
https://github.com/kikiw/Teeworlds-Mod/ … econtext.h

(In the cpp file, I push back data at line 319)

How can I fix it?

2

Re: [PROBLEM] Vector memory issue

Hello
You push back in SendChat.
Did you check if the line 319 is actually reached ?

3

Re: [PROBLEM] Vector memory issue

Ahh yes, it's in SendChat, my mistake.
Yes, I put SendChatTarget(...) after the line 319 and I received the chat message.