Explorar o código

MS_ADPCM_Decode: fix assigning an array to a pointer (lose '&').

Ozkan Sezer %!s(int64=6) %!d(string=hai) anos
pai
achega
fdc67c3c60
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/audio/SDL_wave.c

+ 1 - 1
src/audio/SDL_wave.c

@@ -691,7 +691,7 @@ MS_ADPCM_Decode(WaveFile *file, Uint8 **audio_buf, Uint32 *audio_len)
         return SDL_OutOfMemory();
         return SDL_OutOfMemory();
     }
     }
 
 
-    state.cstate = &cstate;
+    state.cstate = cstate;
 
 
     /* Decode block by block. A truncated block will stop the decoding. */
     /* Decode block by block. A truncated block will stop the decoding. */
     bytesleft = state.input.size - state.input.pos;
     bytesleft = state.input.size - state.input.pos;