diff options
author | Florian Kagerer | 2009-05-22 18:14:00 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-05-22 18:14:00 +0000 |
commit | 32533af8cf3787d979303d70d169dccab5e269cc (patch) | |
tree | 8863a755434be5cc051f8aac0d89b3781db9257c | |
parent | 64e75b91b787e0199b73949a4642cdd665b120f2 (diff) | |
download | scummvm-rg350-32533af8cf3787d979303d70d169dccab5e269cc.tar.gz scummvm-rg350-32533af8cf3787d979303d70d169dccab5e269cc.tar.bz2 scummvm-rg350-32533af8cf3787d979303d70d169dccab5e269cc.zip |
LOL: (temporary) fix for button callback assignment. The automatic list capacity increase seems to fail somehow.
svn-id: r40786
-rw-r--r-- | engines/kyra/staticres.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/kyra/staticres.cpp b/engines/kyra/staticres.cpp index cedd64aaa9..4dfc4e12c1 100644 --- a/engines/kyra/staticres.cpp +++ b/engines/kyra/staticres.cpp @@ -1899,6 +1899,7 @@ void LoLEngine::initStaticResource() { _staticres->unloadId(lolLightningDefs); _buttonCallbacks.clear(); + _buttonCallbacks.reserve(95); #define cb(x) _buttonCallbacks.push_back(BUTTON_FUNCTOR(LoLEngine, this, &LoLEngine::x)) // 0x00 cb(clickedUpArrow); @@ -2000,6 +2001,7 @@ void LoLEngine::initStaticResource() { #undef cb } + #endif // ENABLE_LOL const ScreenDim Screen_LoK::_screenDimTable[] = { |