diff options
author | Andy <drumsetmonkey@gmail.com> | 2016-12-23 08:42:15 -0500 |
---|---|---|
committer | Andy <drumsetmonkey@gmail.com> | 2016-12-23 08:42:15 -0500 |
commit | d7d1b397197893f0ce49b28f762711b7a9ef1087 (patch) | |
tree | 6a14f9daf59cb1640f09e7f82c6325d93d0a62dc /src/brice.cpp | |
parent | 691411cdb214178f2d10ab589943993039fe080e (diff) | |
parent | 6dd6d03bb1af3c1c482a67355446998eccc3288c (diff) |
Sprites are good. Merged.
Diffstat (limited to 'src/brice.cpp')
-rw-r--r-- | src/brice.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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) { |