aboutsummaryrefslogtreecommitdiff
path: root/saga/game.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-01-02 14:52:11 +0000
committerTorbjörn Andersson2005-01-02 14:52:11 +0000
commit5f6108052e24fbf4a309ae5c315278b992d76ede (patch)
treed25d5d688dfe3f767f9ffb40469153662444278c /saga/game.cpp
parent1bc636aaa676839c6e8fe2d8cc1405f2c3b2393c (diff)
downloadscummvm-rg350-5f6108052e24fbf4a309ae5c315278b992d76ede.tar.gz
scummvm-rg350-5f6108052e24fbf4a309ae5c315278b992d76ede.tar.bz2
scummvm-rg350-5f6108052e24fbf4a309ae5c315278b992d76ede.zip
Changed "sizeof x" to "sizeof(x)" for consistency with the rest of ScummVM,
and used ARRAYSIZE() instead in two cases. svn-id: r16408
Diffstat (limited to 'saga/game.cpp')
-rw-r--r--saga/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/saga/game.cpp b/saga/game.cpp
index 3de12efb5d..b0ad3b2536 100644
--- a/saga/game.cpp
+++ b/saga/game.cpp
@@ -759,7 +759,7 @@ int SagaEngine::loadGame(int game_n) {
game_filect = GameDescs[game_n].gd_filect;
- GameModule.gfile_data = (GAME_FILEDATA *)malloc(game_filect * sizeof *GameModule.gfile_data);
+ GameModule.gfile_data = (GAME_FILEDATA *)malloc(game_filect * sizeof(*GameModule.gfile_data));
if (GameModule.gfile_data == NULL) {
return MEM;
}