aboutsummaryrefslogtreecommitdiffstats
path: root/alc/helpers.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-10-25 01:43:23 -0700
committerChris Robinson <[email protected]>2019-10-25 01:43:23 -0700
commit0cba99ed1bc2712c15c17f0940127e6f84395729 (patch)
treec5898dc9022da86450204f71579723c41d54bc92 /alc/helpers.cpp
parent5ac1f192419a5d1d435a0f8703560823075799af (diff)
Avoid static constexpr for arrays iterated over at run-time
Diffstat (limited to 'alc/helpers.cpp')
-rw-r--r--alc/helpers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/helpers.cpp b/alc/helpers.cpp
index 25b2e4a2..4ea94c7d 100644
--- a/alc/helpers.cpp
+++ b/alc/helpers.cpp
@@ -385,7 +385,7 @@ al::vector<std::string> SearchDataFiles(const char *ext, const char *subdir)
DirectorySearch(path.c_str(), ext, &results);
/* Search the local and global data dirs. */
- static constexpr int ids[2]{ CSIDL_APPDATA, CSIDL_COMMON_APPDATA };
+ static const int ids[2]{ CSIDL_APPDATA, CSIDL_COMMON_APPDATA };
for(int id : ids)
{
WCHAR buffer[MAX_PATH];