add myself to the contributors file, fix formatting

This commit is contained in:
Moonchild 2020-01-10 15:07:29 -07:00
parent 19339af706
commit f012f7c8b5
2 changed files with 5 additions and 1 deletions

View File

@ -2,3 +2,4 @@ Contributors
------------
* Christoph Böhmwalder (@chrboe)
* Elijah Stone

View File

@ -33,7 +33,10 @@ SoundTrack::SoundTrack(const char* fileName)
FILESYSTEM_loadFileToMemory(fileName, &mem, &length);
SDL_RWops *fileIn = SDL_RWFromMem(mem, length);
sound = Mix_LoadWAV_RW(fileIn, 1);
if (length) FILESYSTEM_freeMemory(&mem);
if (length)
{
FILESYSTEM_freeMemory(&mem);
}
if (sound == NULL)
{