From 6dd6d03bb1af3c1c482a67355446998eccc3288c Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Thu, 22 Dec 2016 10:49:33 -0500 Subject: fade fix, other stuff too --- src/brice.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/brice.cpp') diff --git a/src/brice.cpp b/src/brice.cpp index 5e7237f..53b1431 100644 --- a/src/brice.cpp +++ b/src/brice.cpp @@ -58,9 +58,9 @@ namespace game { } void briceLoad(void) { - const char *data = readFile("brice.dat"); + auto data = readFile("brice.dat"); - if (data == nullptr) { + if (data.empty()) { briceClear(); data = readFile("brice.dat"); } @@ -74,8 +74,6 @@ namespace game { brice.emplace(std::make_pair(datas[i], datas[i + 1])); } } - - delete[] data; } void briceUpdate(void) { -- cgit v1.2.3