diff options
| author | mniip <mniip@mniip.com> | 2013-08-26 21:51:21 (GMT) |
|---|---|---|
| committer | mniip <mniip@mniip.com> | 2013-08-26 21:51:21 (GMT) |
| commit | 122dc294c99ddea7f73da4b8e7c25a5cd3a7bef3 (patch) | |
| tree | 4abcc66c0420acd568e9dbf8c53efdefb56a6bf5 /src/gui/game | |
| parent | 6ef3f4126fce8e4aaa1173f202d83db7cff6ec17 (diff) | |
| download | powder-122dc294c99ddea7f73da4b8e7c25a5cd3a7bef3.zip powder-122dc294c99ddea7f73da4b8e7c25a5cd3a7bef3.tar.gz | |
Whoops forgot to replace some redundant code related to regex
Diffstat (limited to 'src/gui/game')
| -rw-r--r-- | src/gui/game/GameController.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/game/GameController.cpp b/src/gui/game/GameController.cpp index 539b084..b6d0560 100644 --- a/src/gui/game/GameController.cpp +++ b/src/gui/game/GameController.cpp @@ -1,4 +1,3 @@ - #include <iostream> #include <queue> #include "Config.h" @@ -581,9 +580,9 @@ bool GameController::MouseUp(int x, int y, unsigned button) int tempSaveID = format::StringToNumber<int>(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); |
