Skip to content

Commit 891e2a7

Browse files
author
Justus H
authored
Don't use if-initializers for now
1 parent eed82ac commit 891e2a7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
* PURPOSE: MTA diagnostic tool
77
* DEVELOPERS: Matthew "Towncivilian" Wolfe <[email protected]>
88
*
9-
*
10-
*
119
* Multi Theft Auto is available from http://www.multitheftauto.com/
1210
*
1311
*****************************************************************************/
@@ -27,7 +25,8 @@ int main()
2725
try
2826
{
2927
std::cout << "Do you want MTADiag to auto-fix your installation? By entering 'y' you allow us to make system changes." << std::endl;
30-
if (auto c = std::getchar(); c == 'y' || c == 'Y')
28+
auto c = std::getchar();
29+
if (c == 'y' || c == 'Y')
3130
{
3231
std::cout << "Alright! Starting now..." << std::endl;
3332

0 commit comments

Comments
 (0)