fixed bug with copying wrong score entry between RND and MM levels
authorHolger Schemel <info@artsoft.org>
Sat, 6 May 2017 22:28:22 +0000 (00:28 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 23 Mar 2018 22:21:13 +0000 (23:21 +0100)
src/files.c

index d18122f270c1d03efadea0dd71fd0a6603ce2159..4bebae7fdd29d0c1017fafa86823e4444cdd5fca 100644 (file)
@@ -3995,7 +3995,7 @@ void CopyNativeLevel_RND_to_MM(struct LevelInfo *level)
   strcpy(level_mm->author, level->author);
 
   level_mm->score[SC_PACMAN]     = level->score[SC_PACMAN];
-  level_mm->score[SC_KEY]        = level->score[SC_PACMAN];
+  level_mm->score[SC_KEY]        = level->score[SC_KEY];
   level_mm->score[SC_TIME_BONUS] = level->score[SC_TIME_BONUS];
 
   level_mm->amoeba_speed = level->amoeba_speed;
@@ -4034,7 +4034,7 @@ void CopyNativeLevel_MM_to_RND(struct LevelInfo *level)
     strcpy(level->author, level_mm->author);
 
   level->score[SC_PACMAN]     = level_mm->score[SC_PACMAN];
-  level->score[SC_KEY]        = level_mm->score[SC_PACMAN];
+  level->score[SC_KEY]        = level_mm->score[SC_KEY];
   level->score[SC_TIME_BONUS] = level_mm->score[SC_TIME_BONUS];
 
   level->amoeba_speed = level_mm->amoeba_speed;