diff options
Diffstat (limited to 'frontend/GameData.cpp')
-rw-r--r-- | frontend/GameData.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/GameData.cpp b/frontend/GameData.cpp index 3b9046d..1b7c548 100644 --- a/frontend/GameData.cpp +++ b/frontend/GameData.cpp @@ -37,7 +37,7 @@ Enemy * GameData::create_enemy(const string & name) const { query.reset() .bind(name) ; - + try { auto row = query.row(); auto enemy = unique_ptr<Enemy>{ EnemyFactory::create_enemy(row.col<const char *>(0), row.col<const char *>(1)) }; @@ -69,7 +69,7 @@ Object * GameData::create_object(const string & name) const { query.reset() .bind(name) ; - + try { auto row = query.row(); return ObjectFactory::create_object({ @@ -96,7 +96,7 @@ Location * GameData::create_location(const string & name) const{ query.reset() .bind(name) ; - + try { auto row = query.row(); return LocationFactory::create_location(row.col<const char *>(0), row.col<const char *>(1)); |