summaryrefslogtreecommitdiff
path: root/emulators/fceu/patches/patch-ae
blob: ab3126517eb4054570b6f0afa2dd83c4ab161b55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- src/movie.c.orig	2004-11-13 13:41:55.000000000 +0000
+++ src/movie.c	2004-11-13 13:42:39.000000000 +0000
@@ -154,7 +154,7 @@
 
 void FCEUMOV_AddJoy(uint8 *js)
 {
- int x,y;
+ int x,y,tmpfix;
 
  if(!current) return;	/* Not playback nor recording. */
 
@@ -191,7 +191,7 @@
    tmp &= 0x3;
    ti=0;
 
-   int tmpfix = tmp;
+   tmpfix = tmp;
    while(tmp--) { nextts |= fgetc(slots[-1 - current]) << (ti * 8); ti++; }
 
    // This fixes a bug in movies recorded before version 0.98.11