diff options
Diffstat (limited to 'App/Main.cpp')
| -rw-r--r-- | App/Main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
| diff --git a/App/Main.cpp b/App/Main.cpp index 6ebef7e..7a8e7f3 100644 --- a/App/Main.cpp +++ b/App/Main.cpp | |||
| @@ -54,7 +54,8 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) | |||
| 54 | GetWindowText(hwndSeed, &text[0], 100); | 54 | GetWindowText(hwndSeed, &text[0], 100); |
| 55 | int seed = _wtoi(text.c_str()); | 55 | int seed = _wtoi(text.c_str()); |
| 56 | 56 | ||
| 57 | if (seedIsRNG || text.empty()) { | 57 | // TODO: text needs to be resized! |
| 58 | if (seedIsRNG || wcslen(text.c_str()) == 0) { | ||
| 58 | seed = Random::RandInt(0, 100000); | 59 | seed = Random::RandInt(0, 100000); |
| 59 | seedIsRNG = true; | 60 | seedIsRNG = true; |
| 60 | } | 61 | } |
