mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 06:22:01 -08:00
fixed unclosed resources in copy method in mage framework Copier
This commit is contained in:
parent
91b538be63
commit
dc25eedfc3
3 changed files with 42 additions and 5 deletions
|
|
@ -91,7 +91,7 @@ public class GameReplay {
|
|||
try{
|
||||
file = new FileInputStream("saved/" + gameId.toString() + ".game");
|
||||
buffer = new BufferedInputStream(file);
|
||||
input = new CopierObjectInputStream(Main.classLoader, new GZIPInputStream(buffer))
|
||||
input = new CopierObjectInputStream(Main.classLoader, new GZIPInputStream(buffer));
|
||||
Game loadGame = (Game) input.readObject();
|
||||
GameStates states = (GameStates) input.readObject();
|
||||
loadGame.loadGameStates(states);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue