Made Engine_SCUMM_gameIDList use the convenient GameList(PlainGameDescriptor *) constructor

svn-id: r27427
This commit is contained in:
Max Horn 2007-06-15 17:44:06 +00:00
parent a0983ff7bb
commit fdafdbbe9c

View File

@ -662,13 +662,7 @@ static bool testGame(const GameSettings *g, const DescMap &fileMD5Map, const Com
using namespace Scumm;
GameList Engine_SCUMM_gameIDList() {
const PlainGameDescriptor *g = gameDescriptions;
GameList games;
while (g->gameid) {
games.push_back(GameDescriptor(g->gameid, g->description));
g++;
}
return games;
return GameList(gameDescriptions);
}
GameDescriptor Engine_SCUMM_findGameID(const char *gameid) {