Skip to content
Browse files

GUIScript:ClearActions: also check LastTargetPos

  • Loading branch information...
1 parent d00c1cc commit 8a5209c2ab5a21b7246a0e1e4eda7c1f90b89c46 @lynxlynxlynx lynxlynxlynx committed Aug 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 gemrb/plugins/GUIScript/GUIScript.cpp
View
2 gemrb/plugins/GUIScript/GUIScript.cpp
@@ -9184,7 +9184,7 @@ static PyObject* GemRB_ClearActions(PyObject * /*self*/, PyObject* args)
Py_INCREF( Py_None );
return Py_None;
}
- if (!(actor->GetNextStep()) && !actor->ModalState && !actor->LastTarget) {
+ if (!(actor->GetNextStep()) && !actor->ModalState && !actor->LastTarget && actor->LastTargetPos.isempty()) {
Log(MESSAGE, "GuiScript","No breakable action!");
Py_INCREF( Py_None );
return Py_None;

0 comments on commit 8a5209c

Please sign in to comment.
Something went wrong with that request. Please try again.