From 1501b173c058f11e53507532ad583a6ac9c061cc Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Sat, 17 Nov 2018 14:02:28 -0800 Subject: 4.0.5 --- App/Main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'App/Main.cpp') 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) GetWindowText(hwndSeed, &text[0], 100); int seed = _wtoi(text.c_str()); - if (seedIsRNG || text.empty()) { + // TODO: text needs to be resized! + if (seedIsRNG || wcslen(text.c_str()) == 0) { seed = Random::RandInt(0, 100000); seedIsRNG = true; } -- cgit 1.4.1