SCI: Inhibit spurious GCC warnings in script patching code.
The two relevant variables upon inspection of the current code should not be used uninitialized as per the compiler linter warning, but removing this by adding a zero initialization is simple. It is also good practice and should prevent future issues if the code is modified.
This commit is contained in:
parent
de3f81845a
commit
4598b3b2d9
1 changed files with 2 additions and 2 deletions
|
@ -2668,8 +2668,8 @@ void ScriptPatcher::initSignature(const SciScriptPatcherEntry *patchTable, bool
|
|||
uint16 curWord;
|
||||
uint16 curCommand;
|
||||
uint32 curValue;
|
||||
byte byte1;
|
||||
byte byte2;
|
||||
byte byte1 = 0;
|
||||
byte byte2 = 0;
|
||||
int patchEntryCount = 0;
|
||||
|
||||
// Count entries and allocate runtime data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue