diff options
author | Gregory Montoir | 2003-12-11 21:04:02 +0000 |
---|---|---|
committer | Gregory Montoir | 2003-12-11 21:04:02 +0000 |
commit | 38c4321f5965c5872e2d4e73d0a9e6ec05a35a2e (patch) | |
tree | 33bc8901f1810f0a7686d268f417136586d6b5b5 /queen/command.cpp | |
parent | 3080be97e0567efa78fbcbe8d2daa9906523eb8f (diff) | |
download | scummvm-rg350-38c4321f5965c5872e2d4e73d0a9e6ec05a35a2e.tar.gz scummvm-rg350-38c4321f5965c5872e2d4e73d0a9e6ec05a35a2e.tar.bz2 scummvm-rg350-38c4321f5965c5872e2d4e73d0a9e6ec05a35a2e.zip |
cleanup
svn-id: r11588
Diffstat (limited to 'queen/command.cpp')
-rw-r--r-- | queen/command.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/queen/command.cpp b/queen/command.cpp index 4d9e673f23..1c91ea940a 100644 --- a/queen/command.cpp +++ b/queen/command.cpp @@ -311,43 +311,34 @@ void Command::readCommandsFrom(byte *&ptr) { uint16 i; - // Command List Data _numCmdList = READ_BE_UINT16(ptr); ptr += 2; - _cmdList = new CmdListData[_numCmdList + 1]; memset(&_cmdList[0], 0, sizeof(CmdListData)); for (i = 1; i <= _numCmdList; i++) { _cmdList[i].readFrom(ptr); } - // Command AREA _numCmdArea = READ_BE_UINT16(ptr); ptr += 2; - _cmdArea = new CmdArea[_numCmdArea + 1]; memset(&_cmdArea[0], 0, sizeof(CmdArea)); for (i = 1; i <= _numCmdArea; i++) { _cmdArea[i].readFrom(ptr); } - // Command OBJECT _numCmdObject = READ_BE_UINT16(ptr); ptr += 2; - _cmdObject = new CmdObject[_numCmdObject + 1]; memset(&_cmdObject[0], 0, sizeof(CmdObject)); for (i = 1; i <= _numCmdObject; i++) { _cmdObject[i].readFrom(ptr); } - // Command INVENTORY _numCmdInventory = READ_BE_UINT16(ptr); ptr += 2; - _cmdInventory = new CmdInventory[_numCmdInventory + 1]; memset(&_cmdInventory[0], 0, sizeof(CmdInventory)); for (i = 1; i <= _numCmdInventory; i++) { _cmdInventory[i].readFrom(ptr); } - // Command GAMESTATE _numCmdGameState = READ_BE_UINT16(ptr); ptr += 2; _cmdGameState = new CmdGameState[_numCmdGameState + 1]; memset(&_cmdGameState[0], 0, sizeof(CmdGameState)); |