diff options
Diffstat (limited to 'src/brice.cpp')
-rw-r--r-- | src/brice.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/brice.cpp b/src/brice.cpp index fef336e..6b64d88 100644 --- a/src/brice.cpp +++ b/src/brice.cpp @@ -50,11 +50,13 @@ namespace game { } void briceLoad(void) { - const std::string data = readFile("brice.dat"); + const char *data = readFile("brice.dat"); auto datas = StringTokenizer(data, ','); for (const auto& d : datas) std::cout << d << '\n'; + + delete[] data; } void briceUpdate(void) { |