aboutsummaryrefslogtreecommitdiff
path: root/frontend/GameData.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-30 19:59:38 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-30 19:59:38 +0100
commit6e1d62955c7a7f39bc9126d709a42a70e02a1d30 (patch)
treec2505409c68d554b1e776cdb0c8104af54d375bf /frontend/GameData.cpp
parentc1d43cddee94dd370078f755d33147c9a8181852 (diff)
create backend string class
Diffstat (limited to 'frontend/GameData.cpp')
-rw-r--r--frontend/GameData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/GameData.cpp b/frontend/GameData.cpp
index 739ad1e..4556621 100644
--- a/frontend/GameData.cpp
+++ b/frontend/GameData.cpp
@@ -79,7 +79,7 @@ Object * GameData::create_object(const string & name) {
if (!type_map.contains(type)) throw std::exception();
return ObjectFactory::create_object({
.name = name.c_str(),
- .description = row.col<const char *>(1),
+ .description = row.col<const char *>(1, nullptr),
.type = type_map.at(type),
.min_value = row.col<int>(2),
.max_value = row.col<int>(3),