Skip to content

Commit

Permalink
fixed bug with new version
Browse files Browse the repository at this point in the history
  • Loading branch information
caesuric committed May 25, 2024
1 parent 391fda5 commit dfc75f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions MountainGoap/Internals/ActionAStar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ internal ActionAStar(ActionGraph graph, ActionNode start, BaseGoal goal, float c
if (newCost > costMaximum || newStepCount > stepMaximum) continue;
if (!CostSoFar.ContainsKey(next) || newCost < CostSoFar[next]) {
CostSoFar[next] = newCost;
StepsSoFar[next] = newStepCount;
float priority = newCost + Heuristic(next, goal, current);
frontier.Enqueue(next, priority);
CameFrom[next] = current;
Expand Down
2 changes: 1 addition & 1 deletion MountainGoap/MountainGoap.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<VersionPrefix>1.1.0</VersionPrefix>
<VersionPrefix>1.1.1</VersionPrefix>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Description>A simple GOAP (Goal Oriented Action Planning) library.</Description>
<Copyright>MIT licensed 2022</Copyright>
Expand Down

0 comments on commit dfc75f6

Please sign in to comment.