- fixed: The wbstartstruct that gets passed to the level summary screen needs to be static
This variable is needed long after the function which sets it up will be exited. So this either needs to be dynamically allocated or static, and in this case using a static variable is simpler. However, unlike before, it is only being accessed in the one function that needs to initialize it and pass to the summary screen and nowhere else.
This commit is contained in:
parent
aa550310f6
commit
5970040672
2 changed files with 12 additions and 5 deletions
|
|
@ -76,6 +76,7 @@ struct wbstartstruct_t
|
|||
int pnum;
|
||||
|
||||
wbplayerstruct_t plyr[MAXPLAYERS];
|
||||
|
||||
};
|
||||
|
||||
// Intermission stats.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue