SDL sound compiler fix on Mac
On Mac latest xCode error:
error: ordered comparison between pointer and zero ('Mix_Music *' (aka '_Mix_Music *') and 'int')
if (mMusic>=0)
~~~~~~^ ~
1 error generated.
#### Error building m64
@@ -934,7 +934,7 @@ public:
}
void setTransform(const SoundTransform &inTransform)
{
- if (mMusic>=0)
+ if (mMusic && inTransform.volume>=0)
Mix_VolumeMusic( inTransform.volume*MIX_MAX_VOLUME );
}
