diff options
author | Paul Gilbert | 2012-05-05 09:56:06 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-05-05 09:56:06 +1000 |
commit | 91328fce56144caf15abc8995b68a5a5a0562f0a (patch) | |
tree | 3d3b7c8704b4eda42553014dac4a969d3abb9110 /engines/tony | |
parent | cd41c55799d8fa1df83b0cee07169f23b0db27a6 (diff) | |
download | scummvm-rg350-91328fce56144caf15abc8995b68a5a5a0562f0a.tar.gz scummvm-rg350-91328fce56144caf15abc8995b68a5a5a0562f0a.tar.bz2 scummvm-rg350-91328fce56144caf15abc8995b68a5a5a0562f0a.zip |
TONY: Fixed some more Valgrid identified errors
Diffstat (limited to 'engines/tony')
-rw-r--r-- | engines/tony/font.cpp | 4 | ||||
-rw-r--r-- | engines/tony/mpal/mpal.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/tony/font.cpp b/engines/tony/font.cpp index 60c7b8d525..42540a2620 100644 --- a/engines/tony/font.cpp +++ b/engines/tony/font.cpp @@ -1055,8 +1055,8 @@ void RMFontCredits::Init(void) { cTable[(byte)'é'] = 57; // cTable[''] = 58; // e ^ // cTable[''] = 59; // e pallini - cTable['ì'] = 60; - cTable['í'] = 61; + cTable[(byte)'ì'] = 60; + cTable[(byte)'í'] = 61; // cTable[''] = 62; // i ^ // cTable[''] = 63; // i pallini cTable[(byte)'ò'] = 64; diff --git a/engines/tony/mpal/mpal.cpp b/engines/tony/mpal/mpal.cpp index ec38083a76..5f88eef268 100644 --- a/engines/tony/mpal/mpal.cpp +++ b/engines/tony/mpal/mpal.cpp @@ -1518,7 +1518,7 @@ static HANDLE DoAction(uint32 nAction, uint32 ordItem, uint32 dwParam) { return INVALID_HANDLE_VALUE; // Nella nuova versione scriviamo il numero dell'azione in dwRes - CopyMemory(newitem,item,sizeof(MPALITEM)); + Common::copy((byte *)item, (byte *)item + sizeof(MPALITEM), (byte *)newitem); /* newitem->Action[0].nCmds=item->Action[i].nCmds; CopyMemory(newitem->Action[0].CmdNum,item->Action[i].CmdNum,newitem->Action[0].nCmds*sizeof(newitem->Action[0].CmdNum[0])); */ |