some fixes in win

This commit is contained in:
Ondrej Novak 2025-02-14 20:44:02 +01:00
parent 2d7697174d
commit 02f5d21c32
3 changed files with 11 additions and 11 deletions

View file

@ -388,7 +388,7 @@ const void *load_mob_legacy_format(const void *p, int32_t *s) {
d+=nx;
ofs=nx;
nx = sizeof(TMOB);
memcpy(d, c, nx - ofs); //last padding 1
memcpy(d, c, nx - ofs-1); //last padding 1
c+=nx - ofs - 1;
}
*s = count * sizeof(TMOB);