Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
vadere
vadere
Commits
de9267c2
Commit
de9267c2
authored
Oct 28, 2016
by
Felix Dietrich
Browse files
Bugfix: osm does not crash anymore when a pedestrian does not have a target
parent
04ece8f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
VadereSimulator/src/org/vadere/simulator/models/potential/fields/AbstractPotentialFieldTarget.java
View file @
de9267c2
...
...
@@ -51,6 +51,11 @@ public abstract class AbstractPotentialFieldTarget implements IPotentialTargetGr
*/
@Override
public
double
getTargetPotential
(
final
VPoint
pos
,
final
Agent
ped
)
{
if
(!
ped
.
hasNextTarget
())
{
return
0.0
;
}
CellGrid
potentialField
;
double
targetPotential
=
Double
.
MAX_VALUE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment