From 5f6108052e24fbf4a309ae5c315278b992d76ede Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 2 Jan 2005 14:52:11 +0000 Subject: Changed "sizeof x" to "sizeof(x)" for consistency with the rest of ScummVM, and used ARRAYSIZE() instead in two cases. svn-id: r16408 --- saga/ite_introproc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'saga/ite_introproc.cpp') diff --git a/saga/ite_introproc.cpp b/saga/ite_introproc.cpp index c67777035b..47f48256cf 100644 --- a/saga/ite_introproc.cpp +++ b/saga/ite_introproc.cpp @@ -654,7 +654,7 @@ int Scene::ITEIntroValleyProc(int param, SCENE_INFO *scene_info) { "Jon Van Caneghem", MEDIUM_FONT_ID} }; - int n_credits = sizeof credits / sizeof credits[0]; + int n_credits = ARRAYSIZE(credits); int event_delay = 3000; switch (param) { @@ -926,7 +926,7 @@ int Scene::ITEIntroFairePathProc(int param, SCENE_INFO *scene_info) { MEDIUM_FONT_ID} }; - int n_credits = sizeof credits / sizeof credits[0]; + int n_credits = ARRAYSIZE(credits); switch (param) { case SCENE_BEGIN: -- cgit v1.2.3