Skip to content

Commit

Permalink
multi: use sizeof(sgGameInitInfo) for initdatabytes
Browse files Browse the repository at this point in the history
  • Loading branch information
mewmew authored and AJenbo committed Sep 19, 2019
1 parent a593f3a commit 0b7fca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/multi.cpp
Expand Up @@ -690,7 +690,7 @@ BOOL NetInit(BOOL bSinglePlayer, BOOL *pfExitProgram)
ProgramData.versionid = 42;
ProgramData.maxplayers = MAX_PLRS;
ProgramData.initdata = &sgGameInitInfo;
ProgramData.initdatabytes = 8;
ProgramData.initdatabytes = sizeof(sgGameInitInfo);
ProgramData.optcategorybits = 15;
ProgramData.lcid = 1033; /* LANG_ENGLISH */
memset(&plrdata, 0, sizeof(plrdata));
Expand Down

0 comments on commit 0b7fca1

Please sign in to comment.