diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-10-17 09:54:02 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-10-17 09:54:02 -0400 |
commit | af481dc87d12fde76d82c77b17cfaa08ef77bbd1 (patch) | |
tree | 6a5e2e9d1ffb0c28a9bd74f07cfd0ebb34ab0cdb /src/brice.cpp | |
parent | dad2425e2c686f188c2d8e9e58ac62d87d073bde (diff) |
brice fix
Diffstat (limited to 'src/brice.cpp')
-rw-r--r-- | src/brice.cpp | 6 |
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) { |