prepared code to support more tape actions than players
[rocksndiamonds.git] / src / files.c
index 54835e281f2136a93ba98abcf09ad7b074e122c8..981411f0a9a171d1cd266232412766f2c1a4e299 100644 (file)
@@ -3986,7 +3986,7 @@ static void CopyNativeTape_SP_to_RND(struct LevelInfo *level)
     int demo_repeat = (demo->data[i] & 0xf0) >> 4;
     int tape_action = map_key_SP_to_RND(demo_action);
     int tape_repeat = demo_repeat + 1;
-    byte action[MAX_PLAYERS] = { tape_action, 0, 0, 0 };
+    byte action[MAX_TAPE_ACTIONS] = { tape_action };
     boolean success = 0;
     int j;