mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-18 20:26:45 -04:00
linux fix issues
This commit is contained in:
parent
2d7697174d
commit
86dd699c69
8 changed files with 115 additions and 32 deletions
|
@ -378,17 +378,17 @@ const void *load_mob_legacy_format(const void *p, int32_t *s) {
|
|||
char *d = (char *)m;
|
||||
size_t ofs = 0;
|
||||
size_t nx = offsetof(TMOB,experience);
|
||||
memcpy(d, c, nx);
|
||||
memmove(d, c, nx);
|
||||
c+=nx-2; //first padding 2
|
||||
d+=nx;
|
||||
ofs=nx;
|
||||
nx = offsetof(TMOB, dialog_flags);
|
||||
memcpy(d, c, nx - ofs);
|
||||
memmove(d, c, nx - ofs);
|
||||
c+=nx - ofs -1; //second padding 1
|
||||
d+=nx;
|
||||
ofs=nx;
|
||||
nx = sizeof(TMOB);
|
||||
memcpy(d, c, nx - ofs); //last padding 1
|
||||
memmove(d, c, nx - ofs - 1); //last padding 1
|
||||
c+=nx - ofs - 1;
|
||||
}
|
||||
*s = count * sizeof(TMOB);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue