summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-03-31 12:03:00 -0400
committerJonathan Bradley <jcb@pikum.xyz>2025-03-31 12:03:00 -0400
commit96698b567b2e56768ca3e8762ce55dd3b2849ccb (patch)
tree872bf54880cfd3bbdbbc217aa373a043e432519e /src/game.cpp
parent89614d1dee1049a08e64aead95de6fb28fa7b150 (diff)
pke: use exception ref
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index f471d02..8e65b1b 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -471,7 +471,7 @@ void Game_SaveSceneFile(const char *sceneFilePath) {
}
stream << PKE_FILE_END << std::endl;
- } catch (std::exception e) {
+ } catch (std::exception &e) {
fprintf(stderr, "[%s][Game_SaveSceneFile] Failed to serialize scene file: %s\n", __FILE__, e.what());
failed = false;
} catch (...) {