- fixed compilation on GCC.

error: operands to ?: have different types ‘std::nullptr_t’ and ‘TObjPtr<Duke3d::DDukeActor*>’
This commit is contained in:
Christoph Oelckers 2021-12-22 10:01:16 +01:00
parent 33a00869d8
commit 6f9484a9ee

View file

@ -414,7 +414,7 @@ void GameInterface::UpdateSounds(void)
listener.Environment = nullptr;
listener.valid = false;
}
listener.ListenerObject = ud.cameraactor == nullptr ? nullptr : ud.cameraactor;
listener.ListenerObject = ud.cameraactor == nullptr ? nullptr : ud.cameraactor.Get();
soundEngine->SetListener(listener);
}