From 73f04118f3d03e25fa1139cfea2b1330f0098bd4 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 18 Apr 2011 17:39:31 +0200 Subject: COMMON: Rename Error to ErrorCode, introduce new Error class --- engines/touche/menu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/touche') diff --git a/engines/touche/menu.cpp b/engines/touche/menu.cpp index 52967c25c7..eb10c61893 100644 --- a/engines/touche/menu.cpp +++ b/engines/touche/menu.cpp @@ -331,14 +331,14 @@ void ToucheEngine::handleMenuAction(void *menu, int actionId) { break; case kActionPerformSaveLoad: if (menuData->mode == kMenuLoadStateMode) { - if (loadGameState(_saveLoadCurrentSlot) == Common::kNoError) { + if (loadGameState(_saveLoadCurrentSlot).getCode() == Common::kNoError) { menuData->quit = true; } } else if (menuData->mode == kMenuSaveStateMode) { _system->setFeatureState(OSystem::kFeatureVirtualKeyboard, false); const char *description = menuData->saveLoadDescriptionsTable[_saveLoadCurrentSlot]; if (strlen(description) > 0) { - if (saveGameState(_saveLoadCurrentSlot, description) == Common::kNoError) { + if (saveGameState(_saveLoadCurrentSlot, description).getCode() == Common::kNoError) { menuData->quit = true; } } -- cgit v1.2.3