Skip to content

Commit

Permalink
fix patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiahpslewis authored Sep 4, 2024
1 parent a041e5a commit 4935e04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/patch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,19 @@ end

function load_game(s::Union{String, CxxWrap.StdLib.StdStringAllocated}; kw...)
if length(kw) == 0
_load_game(s)[]
_load_game(s)[][]
else
ps = [StdString(string(k)) => v for (k,v) in kw]
_load_game(s, StdMap{StdString, GameParameter}(ps))[]
_load_game(s, StdMap{StdString, GameParameter}(ps))[][]
end
end

function load_game_as_turn_based(s::Union{String, CxxWrap.StdLib.StdStringAllocated}; kw...)
if length(kw) == 0
_load_game_as_turn_based(s)[]
_load_game_as_turn_based(s)[][]
else
ps = [StdString(string(k)) => v for (k,v) in kw]
_load_game_as_turn_based(s, StdMap{StdString, GameParameter}(ps))[]
_load_game_as_turn_based(s, StdMap{StdString, GameParameter}(ps))[][]
end
end

Expand Down

0 comments on commit 4935e04

Please sign in to comment.