From b008b106d555f633958e95c4dd1816815bc7a2b4 Mon Sep 17 00:00:00 2001 From: mhawryluk Date: Sat, 4 Jun 2022 19:31:25 +0200 Subject: [PATCH] fix: Fix setting game reference to initialization result --- src/main/java/io/rpg/wrapper/WrapperController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/io/rpg/wrapper/WrapperController.java b/src/main/java/io/rpg/wrapper/WrapperController.java index 3bb9d962..99844489 100644 --- a/src/main/java/io/rpg/wrapper/WrapperController.java +++ b/src/main/java/io/rpg/wrapper/WrapperController.java @@ -129,6 +129,7 @@ private Result loadGame(String path) { printLine("Initialization returned null value"); return Result.err(); } else { + game = initializationResult.getOk(); printLine("File was correctly loaded. Press START to begin game"); }