mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-18 12:16:40 -04:00
fix issue reported by msvc memory sanitiser
This commit is contained in:
parent
075100d2ce
commit
14d1a4666d
3 changed files with 7 additions and 11 deletions
|
@ -385,7 +385,7 @@ const void *load_mob_legacy_format(const void *p, int32_t *s) {
|
|||
nx = offsetof(TMOB, dialog_flags);
|
||||
memmove(d, c, nx - ofs);
|
||||
c+=nx - ofs -1; //second padding 1
|
||||
d+=nx;
|
||||
d+=nx-ofs;
|
||||
ofs=nx;
|
||||
nx = sizeof(TMOB);
|
||||
memmove(d, c, nx - ofs - 1); //last padding 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue