Skip to content

Commit

Permalink
Merge pull request #4 from jenanwise/patch_serialization
Browse files Browse the repository at this point in the history
Fix read of patch version when serializing.
  • Loading branch information
seiyria authored Jul 30, 2021
2 parents 70bb1f7 + 4943e80 commit 7fda619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function serializeDeck(deck: Card[]): string {
export function serializeOathGame(game: OathGame): string {
const oathMajor = parseInt(game.version.major, 10);
const oathMinor = parseInt(game.version.minor, 10);
const oathPatch = parseInt(game.version.minor, 10);
const oathPatch = parseInt(game.version.patch, 10);

if (oathMajor < 3 || (oathMajor === 3 && oathMinor < 1)) {
throw new Error('Oath savefile version 3.1.0 is the minimum required.');
Expand Down

0 comments on commit 7fda619

Please sign in to comment.