Skip to content

Commit

Permalink
VOYEUR: Remove useless VoyeurEngine pointer in SoundManager
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Mar 9, 2014
1 parent c72927b commit 2dac5b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion engines/voyeur/sound.cpp
Expand Up @@ -28,7 +28,7 @@

namespace Voyeur {

SoundManager::SoundManager(VoyeurEngine *vm, Audio::Mixer *mixer) : _vm(vm) {
SoundManager::SoundManager(Audio::Mixer *mixer) {
_mixer = mixer;
_vocOffset = 0;
}
Expand Down
3 changes: 1 addition & 2 deletions engines/voyeur/sound.h
Expand Up @@ -33,12 +33,11 @@ namespace Voyeur {

class SoundManager {
private:
VoyeurEngine *_vm;
Audio::Mixer *_mixer;
Audio::SoundHandle _soundHandle;
int _vocOffset;
public:
SoundManager(VoyeurEngine *vm, Audio::Mixer *mixer);
SoundManager(Audio::Mixer *mixer);

void playVOCMap(byte *voc, int vocSize);
void stopVOCPlay();
Expand Down
2 changes: 1 addition & 1 deletion engines/voyeur/voyeur.cpp
Expand Up @@ -71,7 +71,7 @@ VoyeurEngine::VoyeurEngine(OSystem *syst, const VoyeurGameDescription *gameDesc)
_eventsManager = new EventsManager(this);
_filesManager = new FilesManager(this);
_graphicsManager = new GraphicsManager(this);
_soundManager = new SoundManager(this, _mixer);
_soundManager = new SoundManager(_mixer);
_voy = new SVoy(this);
}

Expand Down

0 comments on commit 2dac5b7

Please sign in to comment.