summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorshfil <filip.gawin@zoho.com>2020-05-18 21:19:42 +0200
committerGitHub <noreply@github.com>2020-05-18 21:19:42 +0200
commit3cda88ea2000a68e67910b77594aaf7cca87afe8 (patch)
treee624bf958d6b6b4b4f03f35e1a379b03f55a5787 /src
parentMerge pull request #559 from ShFil119/travis (diff)
parentFix string assignment (aldlist.cpp) (diff)
downloadre3-3cda88ea2000a68e67910b77594aaf7cca87afe8.tar
re3-3cda88ea2000a68e67910b77594aaf7cca87afe8.tar.gz
re3-3cda88ea2000a68e67910b77594aaf7cca87afe8.tar.bz2
re3-3cda88ea2000a68e67910b77594aaf7cca87afe8.tar.lz
re3-3cda88ea2000a68e67910b77594aaf7cca87afe8.tar.xz
re3-3cda88ea2000a68e67910b77594aaf7cca87afe8.tar.zst
re3-3cda88ea2000a68e67910b77594aaf7cca87afe8.zip
Diffstat (limited to 'src')
-rw-r--r--src/audio/oal/aldlist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/oal/aldlist.cpp b/src/audio/oal/aldlist.cpp
index 458b7c80..7401e036 100644
--- a/src/audio/oal/aldlist.cpp
+++ b/src/audio/oal/aldlist.cpp
@@ -73,7 +73,7 @@ ALDeviceList::ALDeviceList()
if ((bNewName) && (actualDeviceName != NULL) && (strlen(actualDeviceName) > 0)) {
memset(&ALDeviceInfo, 0, sizeof(ALDEVICEINFO));
ALDeviceInfo.bSelected = true;
- ALDeviceInfo.strDeviceName.assign(actualDeviceName, strlen(actualDeviceName));
+ ALDeviceInfo.strDeviceName = actualDeviceName;
alcGetIntegerv(device, ALC_MAJOR_VERSION, sizeof(int), &ALDeviceInfo.iMajorVersion);
alcGetIntegerv(device, ALC_MINOR_VERSION, sizeof(int), &ALDeviceInfo.iMinorVersion);