mirror of
https://github.com/ioquake/jedi-academy.git
synced 2025-02-13 07:31:46 +00:00
init arrays to zero in BG_LegalizedForcePowers()
This commit is contained in:
parent
8be8413a0b
commit
2cb6b49d77
1 changed files with 4 additions and 0 deletions
|
@ -451,6 +451,10 @@ qboolean BG_LegalizedForcePowers(char *powerOut, int maxRank, qboolean freeSaber
|
|||
int final_Side;
|
||||
int final_Powers[NUM_FORCE_POWERS];
|
||||
|
||||
memset(powerBuf, 0, sizeof(powerBuf));
|
||||
memset(readBuf, 0, sizeof(readBuf));
|
||||
memset(final_Powers, 0, sizeof(final_Powers));
|
||||
|
||||
if (powerLen >= 128)
|
||||
{ //This should not happen. If it does, this is obviously a bogus string.
|
||||
//They can have this string. Because I said so.
|
||||
|
|
Loading…
Reference in a new issue