From 122dc294c99ddea7f73da4b8e7c25a5cd3a7bef3 Mon Sep 17 00:00:00 2001 From: mniip Date: Tue, 27 Aug 2013 01:51:21 +0400 Subject: [PATCH] Whoops forgot to replace some redundant code related to regex --- src/gui/game/GameController.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/game/GameController.cpp b/src/gui/game/GameController.cpp index 539b084ca..b6d056029 100644 --- a/src/gui/game/GameController.cpp +++ b/src/gui/game/GameController.cpp @@ -1,4 +1,3 @@ - #include #include #include "Config.h" @@ -581,9 +580,9 @@ bool GameController::MouseUp(int x, int y, unsigned button) int tempSaveID = format::StringToNumber(std::string(buff)); if (tempSaveID) { - if ((*iter).text.c_str()[1] == 'c') + if (str[1] == 'c') OpenSavePreview(tempSaveID, 0, false); - else if ((*iter).text.c_str()[1] == 't') + else if (str[1] == 't') { char url[256]; sprintf(url, "http://powdertoy.co.uk/Discussions/Thread/View.html?Thread=%i", tempSaveID);