aboutsummaryrefslogtreecommitdiff
path: root/src/utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.cc')
-rw-r--r--src/utils.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils.cc b/src/utils.cc
index a44eced..f58dc61 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -72,6 +72,9 @@ std::vector<std::pair<std::string, int>> utils::copper2coins(int coppers) {
coppers -= amnt.second * largest.second;
ret.push_back(amnt);
}
+ if(ret.empty()) {
+ ret.push_back({"cp", 0});
+ }
return ret;
}