fix console sound (#1547)

This commit is contained in:
David Markowitz
2024-04-11 08:29:49 -07:00
committed by GitHub
parent b8b2b687e2
commit 3a6123fe36
2 changed files with 4 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ void NsTokenConsoleServer::OnUse(Entity* self, Entity* user) {
const auto useSound = self->GetVar<std::string>(u"sound1");
if (!useSound.empty()) {
GameMessages::SendPlayNDAudioEmitter(self, UNASSIGNED_SYSTEM_ADDRESS, useSound);
GameMessages::SendPlayNDAudioEmitter(self, user->GetSystemAddress(), useSound);
}
// Player must be in faction to interact with this entity.