From af481dc87d12fde76d82c77b17cfaa08ef77bbd1 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Mon, 17 Oct 2016 09:54:02 -0400 Subject: brice fix --- src/brice.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/brice.cpp') diff --git a/src/brice.cpp b/src/brice.cpp index de95f51..5e7237f 100644 --- a/src/brice.cpp +++ b/src/brice.cpp @@ -59,6 +59,12 @@ namespace game { void briceLoad(void) { const char *data = readFile("brice.dat"); + + if (data == nullptr) { + briceClear(); + data = readFile("brice.dat"); + } + auto datas = StringTokenizer(data, '\n'); if (datas.size() != 0) { -- cgit v1.2.3