Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDLAudioManager not reaching RdMentalMap #30

Open
jgvictores opened this issue Feb 10, 2016 · 2 comments
Open

SDLAudioManager not reaching RdMentalMap #30

jgvictores opened this issue Feb 10, 2016 · 2 comments
Labels

Comments

@jgvictores
Copy link
Member

OS: Ubuntu trusty
Branch: develop
SDLAudioManager not reaching RdMentalMap. SDLAudioManager used in RobotDevastation class, but is null in RdMentalMap.

@David-Estevez
Copy link
Collaborator

For some reason, when the AudioManager was requested in MentalMap's constructor, the SDLAudioManager was not registered yet.

As a good practise from now on, it is advised to register the manager that is going to be requested in each constructor, except if several can be used (i.e. mockup, for testing purposes) and the default Manager is requested.

Fixed at 81d19f8

@jgvictores
Copy link
Member Author

Reopening, as 81d19f8 was more of a work-around than a fix.

jgvictores added a commit that referenced this issue Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants