Fix character spawning at saved position instead of default preset

selectSpawnPreset() was always returning a preset (Goldshire by default),
overriding the saved character position. Now returns nullptr when no
WOW_SPAWN env var is set, allowing saved position to be used.
This commit is contained in:
Kelsi 2026-02-05 23:24:52 -08:00
parent 8cb38b91f9
commit 3e50b1071d

View file

@ -48,8 +48,9 @@ namespace core {
namespace {
const SpawnPreset* selectSpawnPreset(const char* envValue) {
// Return nullptr if no preset specified - use saved character position
if (!envValue || !*envValue) {
return &SPAWN_PRESETS[0];
return nullptr;
}
std::string key = envValue;