summaryrefslogtreecommitdiffstats
path: root/src/audio/oal
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-20 19:49:24 +0200
committeraap <aap@papnet.eu>2020-05-20 19:49:24 +0200
commit114208533a433d83117ef7a4e7c25a2fa59d3030 (patch)
tree172de606bc1a2e203f8ee5933a47e26370f90668 /src/audio/oal
parentMerge branch 'miami' of github.com:GTAmodding/re3 into miami (diff)
parentMerge remote-tracking branch 'origin/master' into miami (diff)
downloadre3-114208533a433d83117ef7a4e7c25a2fa59d3030.tar
re3-114208533a433d83117ef7a4e7c25a2fa59d3030.tar.gz
re3-114208533a433d83117ef7a4e7c25a2fa59d3030.tar.bz2
re3-114208533a433d83117ef7a4e7c25a2fa59d3030.tar.lz
re3-114208533a433d83117ef7a4e7c25a2fa59d3030.tar.xz
re3-114208533a433d83117ef7a4e7c25a2fa59d3030.tar.zst
re3-114208533a433d83117ef7a4e7c25a2fa59d3030.zip
Diffstat (limited to 'src/audio/oal')
-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);