replaced basic array in the model manager with stl containers

This commit is contained in:
tmj-fstate
2017-08-05 18:28:46 +02:00
parent 238ea7547d
commit b783cd38a9
8 changed files with 81 additions and 165 deletions

View File

@@ -223,7 +223,7 @@ void TEvent::Load(cParser *parser, vector3 *org)
parser->getTokens(1, false); // case sensitive
*parser >> token;
// str = AnsiString(token.c_str());
Params[0].asText = new char[token.length() + 1];
Params[0].asText = new char[token.length() + 1]; // BUG: source of memory leak
strcpy(Params[0].asText, token.c_str());
if (token != "*") // czy ma zostać bez zmian?
iFlags |= update_memstring;