aboutsummaryrefslogtreecommitdiffstats
path: root/src/brice.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-10-17 09:54:02 -0400
committerClyne Sullivan <tullivan99@gmail.com>2016-10-17 09:54:02 -0400
commitaf481dc87d12fde76d82c77b17cfaa08ef77bbd1 (patch)
tree6a5e2e9d1ffb0c28a9bd74f07cfd0ebb34ab0cdb /src/brice.cpp
parentdad2425e2c686f188c2d8e9e58ac62d87d073bde (diff)
brice fix
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) {