From b59ac9ea3a837d3118f501464f380176510735f8 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 14 May 2013 11:46:14 +0300 Subject: DRASCULA: Remove superfluous strcpy() --- engines/drascula/interface.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'engines/drascula/interface.cpp') diff --git a/engines/drascula/interface.cpp b/engines/drascula/interface.cpp index 70212db9e8..fca8040f59 100644 --- a/engines/drascula/interface.cpp +++ b/engines/drascula/interface.cpp @@ -121,10 +121,8 @@ bool DrasculaEngine::confirmExit() { void DrasculaEngine::showMenu() { int h, n, x; - char textIcon[13]; byte *srcSurface = (currentChapter == 6) ? tableSurface : frontSurface; x = whichObject(); - strcpy(textIcon, iconName[x]); for (n = 1; n < ARRAYSIZE(inventoryObjects); n++) { h = inventoryObjects[n]; @@ -138,7 +136,7 @@ void DrasculaEngine::showMenu() { } if (x < 7) - print_abc(textIcon, _itemLocations[x].x - 2, _itemLocations[x].y - 7); + print_abc(iconName[x], _itemLocations[x].x - 2, _itemLocations[x].y - 7); } void DrasculaEngine::clearMenu() { -- cgit v1.2.3