From e7f2b41c954e400641bc9caf64e4d4988d643f8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 8 Sep 2015 01:16:08 +0200 Subject: [PATCH] Audio: use proper function. Thanks, MSVC, for the warning! --- src/Magnum/Audio/Source.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Audio/Source.h b/src/Magnum/Audio/Source.h index 074f0113a..8d127060f 100644 --- a/src/Magnum/Audio/Source.h +++ b/src/Magnum/Audio/Source.h @@ -241,7 +241,7 @@ class MAGNUM_AUDIO_EXPORT Source { * @see @fn_al{Sourcei} with @def_al{MAX_DISTANCE} */ Source& setMaxDistance(Int distance) { - alSourcef(_id, AL_MAX_DISTANCE, distance); + alSourcei(_id, AL_MAX_DISTANCE, distance); return *this; }