Skip to content

Commit

Permalink
Fix incorrect counter in Asset_Util
Browse files Browse the repository at this point in the history
  • Loading branch information
SE2Dev committed Sep 19, 2016
1 parent 3b92adc commit 334dbc8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions components/asset_util/common/ff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,15 @@ int FF_FFExtractFiles(BYTE* searchData, DWORD searchSize)

if (Str_EndsWith(rawfileString, ".wav"))
{
if (g_extractSounds.ValueBool())
if (!g_extractSounds.ValueBool())
{
Snd_Header* snd_info = (Snd_Header*)(rawfileString - sizeof(Snd_Header));
FF_FFExtractSoundFile(snd_info, rawfileString);
searchData = (BYTE*)rawfileString + strlen(rawfileString) + 1;
continue;
}

Snd_Header* snd_info = (Snd_Header*)(rawfileString - sizeof(Snd_Header));
FF_FFExtractSoundFile(snd_info, rawfileString);
searchData = (BYTE*)rawfileString + strlen(rawfileString) + 1;
continue;
}

//
Expand Down

0 comments on commit 334dbc8

Please sign in to comment.