Вопрос Crashing when memcpy animlayers

Начинающий
Статус
Оффлайн
Регистрация
17 Дек 2018
Сообщения
116
Реакции[?]
5
Поинты[?]
0
Well, I'm new to pasting and c++. I tried adding an animlayer reso to my hack, however I crash when I memcpy the animlayers. I crash on update clientside animation.
this is how I memcpy:
std :: memcpy (animlayers, pl-> get_animoverlays (), pl-> animlayer_count () * sizeof (animlayer_t));
std :: memcpy (record-> server_anim_layers, pl-> get_animoverlays (), pl-> animlayer_count () * sizeof (animlayer_t));
std :: memcpy (record-> layers, animlayers, pl-> animlayer_count () * sizeof (animlayer_t));
This insta crashes my game and I have no idea what could be the cause or how to fix it. If you'd like a ss on the callstack or smth like that just ask. Any help is appreciated.
 
Сверху Снизу