Код: Выделить всё
double free or corruption (out)
zsh: IOT instruction (core dumped)
Как работает вектор уничтожается следующим образом:
Код: Выделить всё
class AnimatorSkeletal {
...
std::vector animations;
...
virtual ~AnimatorSkeletal() {
for (auto* animation : animations) {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79343596/double-free-or-corruption-out-error-when-i-try-to-free-a-stdvector[/url]
Мобильная версия