From 4d065c1024ef88217e3de9d9cc18f20be1821c54 Mon Sep 17 00:00:00 2001 From: dawidg81 Date: Mon, 26 Jan 2026 21:05:46 +0100 Subject: utils update --- src/Utils/Utils.hpp | 2 +- src/Utils/catchInputInt.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Utils/Utils.hpp b/src/Utils/Utils.hpp index 7df9e3d..a60a64d 100644 --- a/src/Utils/Utils.hpp +++ b/src/Utils/Utils.hpp @@ -4,7 +4,7 @@ class Utils{ public: - int catchInputInt(int input); + int catchInputInt(int* input); int catchReturn(int renum); }; diff --git a/src/Utils/catchInputInt.cpp b/src/Utils/catchInputInt.cpp index dd804b5..da99833 100644 --- a/src/Utils/catchInputInt.cpp +++ b/src/Utils/catchInputInt.cpp @@ -3,7 +3,7 @@ #include #include -int Utils::catchInputInt(int input){ +int Utils::catchInputInt(int* input){ std::cin >> input; if (std::cin.fail()) { -- cgit v1.2.3