From 513e0bb643b57af45c344e08944449bcacb76c62 Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Fri, 9 Apr 2021 16:20:15 -0700 Subject: [PATCH] :racehorse: SendFunds checks for contains --- include/bank.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }