InstallationLocations: Add missing static specifiers.
- Fixes a crash in find_paths() due to the InstallationLocations object getting overwritten. Thanks to Chris Roberts for reporting.
This commit is contained in:
parent
754bbf4866
commit
09a8919213
@ -87,8 +87,8 @@ public:
|
||||
|
||||
static InstallationLocations* Default()
|
||||
{
|
||||
char sBuffer[sizeof(InstallationLocations)];
|
||||
InstallationLocations* sDefaultLocations
|
||||
static char sBuffer[sizeof(InstallationLocations)];
|
||||
static InstallationLocations* sDefaultLocations
|
||||
= new(&sBuffer) InstallationLocations;
|
||||
return sDefaultLocations;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user