Skip to content
Snippets Groups Projects
Commit 6945004a authored by Ludovic Apvrille's avatar Ludovic Apvrille
Browse files

Update on hasInUpperState..bugs?

parent 2d869a5f
No related branches found
No related tags found
No related merge requests found
......@@ -180,16 +180,23 @@ public abstract class AvatarStateMachineElement extends AvatarElement {
}
public boolean hasInUpperState(AvatarState _as) {
if (getState() == _as) {
AvatarState as = getState();
if (_as == null) {
return false;
}
if (as == _as) {
return true;
}
if (getState() != null) {
if (as != null) {
return getState().hasInUpperState(_as);
}
return false;
}
public boolean inAnUpperStateOf(AvatarState _state) {
if (_state == null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment