diff options
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp index 220fd04dd..cb6d2075e 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -225,11 +225,13 @@ Client::Client( MapDrawControl &control, IWritableTextureSource *tsrc, IWritableItemDefManager *itemdef, - IWritableNodeDefManager *nodedef + IWritableNodeDefManager *nodedef, + ISoundManager *sound ): m_tsrc(tsrc), m_itemdef(itemdef), m_nodedef(nodedef), + m_sound(sound), m_mesh_update_thread(this), m_env( new ClientMap(this, this, control, @@ -2326,6 +2328,6 @@ u16 Client::allocateUnknownNodeId(const std::string &name) } ISoundManager* Client::getSoundManager() { - return &dummySoundManager; + return m_sound; } |