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:
D G Turner 2014-04-18 14:59:49 +01:00
parent de3f81845a
commit 4598b3b2d9

View File

@ -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