fix: lightlevel calculation crash on 64bit xash

This commit is contained in:
jeefo 2023-05-25 15:19:08 +03:00
commit e016fa299e
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit a8117ca144f5652974d3eb3210396138a907a980
Subproject commit 2cee19a0433fb71aa96b93151ceb1850b6106b5d

View file

@ -763,7 +763,7 @@ bool Game::loadCSBinary () {
if (!modname) {
return false;
}
StringArray libs { "mp", "cs", "cs_i386" };
Array <StringRef> libs { "mp", "cs", "cs_i386" };
// lookup for x64 binaries first
if (plat.x64) {
@ -786,7 +786,7 @@ bool Game::loadCSBinary () {
// search the libraries inside game dlls directory
for (const auto &lib : libs) {
auto path = strings.joinPath (modname, "dlls", lib + DLL_SUFFIX);
auto path = strings.joinPath (modname, "dlls", lib) + DLL_SUFFIX;
// if we can't read file, skip it
if (!plat.fileExists (path.chars ())) {