aboutsummaryrefslogtreecommitdiffstats
path: root/src/brice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/brice.cpp')
-rw-r--r--src/brice.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/brice.cpp b/src/brice.cpp
index e1a5b3e..638c02f 100644
--- a/src/brice.cpp
+++ b/src/brice.cpp
@@ -49,8 +49,7 @@ namespace game {
std::ofstream out ("brice.dat", std::ios::out | std::ios::binary);
std::string data = std::to_string(brice.size()) + '\n';
- if (!out.is_open())
- UserError("Cannot open brice data file");
+ UserAssert(out.is_open(), "Cannot open brice data file");
for (const auto& i : brice) {
data.append(i.first + '\n');