[Scummvm-git-logs] scummvm master -> 27bb4850ab5d23bd75ef06e1d23161ce9d49d451

athrxx athrxx at scummvm.org
Wed Oct 13 19:02:08 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
27bb4850ab KYRA: (LOL) - try to avoid Common::Array assert on MorphOS


Commit: 27bb4850ab5d23bd75ef06e1d23161ce9d49d451
    https://github.com/scummvm/scummvm/commit/27bb4850ab5d23bd75ef06e1d23161ce9d49d451
Author: athrxx (athrxx at scummvm.org)
Date: 2021-10-13T21:01:04+02:00

Commit Message:
KYRA: (LOL) - try to avoid Common::Array assert on MorphOS

Changed paths:
    engines/kyra/resource/staticres_lol.cpp


diff --git a/engines/kyra/resource/staticres_lol.cpp b/engines/kyra/resource/staticres_lol.cpp
index 9cfac24399..97c05669e0 100644
--- a/engines/kyra/resource/staticres_lol.cpp
+++ b/engines/kyra/resource/staticres_lol.cpp
@@ -307,6 +307,7 @@ void LoLEngine::initStaticResource() {
 
 	const char *const *tmpSndList = _staticres->loadStrings(kLoLIngameSfxFiles, _ingameSoundListSize);
 	if (tmpSndList) {
+		_ingameSoundList.reserve(_ingameSoundListSize);
 		for (int i = 0; i < _ingameSoundListSize; i++)
 			_ingameSoundList.push_back(Common::String(tmpSndList[i]));
 		_staticres->unloadId(kLoLIngameSfxFiles);




More information about the Scummvm-git-logs mailing list