diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-05-24 00:07:03 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-05-24 00:07:03 +0200 |
commit | 0c4ce002f1e076f278fde12673ef8f973952b785 (patch) | |
tree | a0a0f735277f21cfafc1cc4d9f990e340d473009 /src/audio/oal/aldlist.cpp | |
parent | Cleanup (diff) | |
parent | Fix OAL crash (diff) | |
download | re3-0c4ce002f1e076f278fde12673ef8f973952b785.tar re3-0c4ce002f1e076f278fde12673ef8f973952b785.tar.gz re3-0c4ce002f1e076f278fde12673ef8f973952b785.tar.bz2 re3-0c4ce002f1e076f278fde12673ef8f973952b785.tar.lz re3-0c4ce002f1e076f278fde12673ef8f973952b785.tar.xz re3-0c4ce002f1e076f278fde12673ef8f973952b785.tar.zst re3-0c4ce002f1e076f278fde12673ef8f973952b785.zip |
Diffstat (limited to 'src/audio/oal/aldlist.cpp')
-rw-r--r-- | src/audio/oal/aldlist.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/audio/oal/aldlist.cpp b/src/audio/oal/aldlist.cpp index 7401e036..9834ffb4 100644 --- a/src/audio/oal/aldlist.cpp +++ b/src/audio/oal/aldlist.cpp @@ -35,7 +35,6 @@ */ ALDeviceList::ALDeviceList() { - ALDEVICEINFO ALDeviceInfo; char *devices; int index; const char *defaultDeviceName; @@ -71,7 +70,7 @@ ALDeviceList::ALDeviceList() } } if ((bNewName) && (actualDeviceName != NULL) && (strlen(actualDeviceName) > 0)) { - memset(&ALDeviceInfo, 0, sizeof(ALDEVICEINFO)); + ALDEVICEINFO ALDeviceInfo; ALDeviceInfo.bSelected = true; ALDeviceInfo.strDeviceName = actualDeviceName; alcGetIntegerv(device, ALC_MAJOR_VERSION, sizeof(int), &ALDeviceInfo.iMajorVersion); |