mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
use a byte, not a ptr2int with memset
This commit is contained in:
parent
cc9bae8b57
commit
a2b1b6289c
1 changed files with 2 additions and 2 deletions
|
@ -1055,7 +1055,7 @@ static void P_LoadLinedefs(UINT8 *data)
|
||||||
ld->special = SHORT(mld->special);
|
ld->special = SHORT(mld->special);
|
||||||
ld->tag = SHORT(mld->tag);
|
ld->tag = SHORT(mld->tag);
|
||||||
memset(ld->args, 0, NUMLINEARGS*sizeof(*ld->args));
|
memset(ld->args, 0, NUMLINEARGS*sizeof(*ld->args));
|
||||||
memset(ld->stringargs, (int)NULL, NUMLINESTRINGARGS*sizeof(*ld->stringargs));
|
memset(ld->stringargs, 0x00, NUMLINESTRINGARGS*sizeof(*ld->stringargs));
|
||||||
P_SetLinedefV1(i, SHORT(mld->v1));
|
P_SetLinedefV1(i, SHORT(mld->v1));
|
||||||
P_SetLinedefV2(i, SHORT(mld->v2));
|
P_SetLinedefV2(i, SHORT(mld->v2));
|
||||||
|
|
||||||
|
@ -1648,7 +1648,7 @@ static void P_LoadTextmap(void)
|
||||||
ld->special = 0;
|
ld->special = 0;
|
||||||
ld->tag = 0;
|
ld->tag = 0;
|
||||||
memset(ld->args, 0, NUMLINEARGS*sizeof(*ld->args));
|
memset(ld->args, 0, NUMLINEARGS*sizeof(*ld->args));
|
||||||
memset(ld->stringargs, (int)NULL, NUMLINESTRINGARGS*sizeof(*ld->stringargs));
|
memset(ld->stringargs, 0x00, NUMLINESTRINGARGS*sizeof(*ld->stringargs));
|
||||||
ld->sidenum[0] = 0xffff;
|
ld->sidenum[0] = 0xffff;
|
||||||
ld->sidenum[1] = 0xffff;
|
ld->sidenum[1] = 0xffff;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue