diff --git a/include/bank.hpp b/include/bank.hpp index e2147a9..9db3339 100644 --- a/include/bank.hpp +++ b/include/bank.hpp @@ -65,7 +65,7 @@ public: { //cant send money to self, from self - if (a_name == b_name) + if (a_name == b_name || !users.contains(a_name) || !users.contains(b_name)) { return false; }