aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2012-01-02 12:29:22 +1100
committerStrangerke2012-04-06 08:19:19 +0200
commit3e0b4d3774c282ee2e31a3abb2b5d614da0ca311 (patch)
tree9786e3fab41e2e94082b899172f333230ae241f4
parent39190ac009ba7139b170376b05e35048fcfe4cbb (diff)
downloadscummvm-rg350-3e0b4d3774c282ee2e31a3abb2b5d614da0ca311.tar.gz
scummvm-rg350-3e0b4d3774c282ee2e31a3abb2b5d614da0ca311.tar.bz2
scummvm-rg350-3e0b4d3774c282ee2e31a3abb2b5d614da0ca311.zip
MORTEVIELLE: Cleaned up the init_nbrepm method
-rw-r--r--engines/mortevielle/mor.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/mortevielle/mor.cpp b/engines/mortevielle/mor.cpp
index 47430ba220..bfb8655df5 100644
--- a/engines/mortevielle/mor.cpp
+++ b/engines/mortevielle/mor.cpp
@@ -989,11 +989,8 @@ void init_nbrepm() {
int i;
/* debug('init_nbrepm'); */
- i = 0;
- do {
- i = succ(int, i);
- nbrepm[i] = ipm[i];
- } while (!(i == 8));
+ for (int idx = 0; idx < 9; ++idx)
+ nbrepm[idx] = ipm[idx];
}
void phaz(int &haz, int &p, int cf) {