From bf8ecccbb846a1e5e3c52bfd566eb5f638ad8fc1 Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Thu, 15 Jul 2021 00:32:45 -0700 Subject: [PATCH] :fire: static not needed --- src/bank.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bank.cpp b/src/bank.cpp index dabe5ea..c838646 100644 --- a/src/bank.cpp +++ b/src/bank.cpp @@ -342,7 +342,7 @@ void Bank::Load() if (!users_load.is_open()) { std::ofstream users_save(users_location, std::ios::out | std::ios::binary); - static uint8_t temp[16]{16, 0, 0, 0, 4}; + uint8_t temp[16]{16, 0, 0, 0, 4}; users_save.write((char *)temp, 16); users_save.close(); throw std::invalid_argument("Cannot find users.dat, file has been created\n");