mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-31 02:14:09 +03:00
Replace all SDL_RWFromMem() with SDL_RWFromConstMem()
Since we're not going to be writing to any of these RWops, we might as well just ensure that we don't by using SDL_RWFromConstMem().
This commit is contained in:
@@ -38,7 +38,7 @@ SoundTrack::SoundTrack(const char* fileName)
|
||||
fprintf(stderr, "Unable to load WAV file %s\n", fileName);
|
||||
return;
|
||||
}
|
||||
SDL_RWops *fileIn = SDL_RWFromMem(mem, length);
|
||||
SDL_RWops *fileIn = SDL_RWFromConstMem(mem, length);
|
||||
sound = Mix_LoadWAV_RW(fileIn, 1);
|
||||
FILESYSTEM_freeMemory(&mem);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user