aboutsummaryrefslogtreecommitdiffstats
path: root/src/brice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/brice.cpp')
-rw-r--r--src/brice.cpp6
1 files changed, 6 insertions, 0 deletions
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) {