SCI: Add global g_sci pointer to the active SciEngine instance
svn-id: r48046
This commit is contained in:
parent
24fd77eb24
commit
ac4d325e0d
21 changed files with 64 additions and 49 deletions
|
@ -133,7 +133,7 @@ SoundCommandParser::SoundCommandParser(ResourceManager *resMan, SegManager *segM
|
|||
|
||||
#ifdef USE_OLD_MUSIC_FUNCTIONS
|
||||
// The following hack is needed to ease the change from old to new sound code (because the new sound code does not use SfxState)
|
||||
_state = &((SciEngine *)g_engine)->getEngineState()->_sound; // HACK
|
||||
_state = &g_sci->getEngineState()->_sound; // HACK
|
||||
#endif
|
||||
|
||||
#ifndef USE_OLD_MUSIC_FUNCTIONS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue