mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 01:05:59 +00:00
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
@ -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…
x
Reference in New Issue
Block a user