Permalink
Browse files

when using items with TARGET_SELF always reset target mode afterwards

Fixes misbehaving items like MISC9Y in BG2.
  • Loading branch information...
fizzet committed May 24, 2013
1 parent c6c7988 commit 6d8cf95fbee0ba3a740479b6b2e7ebf0e95de4ef
Showing with 1 addition and 1 deletion.
  1. +1 −1 gemrb/plugins/GUIScript/GUIScript.cpp
@@ -9556,7 +9556,7 @@ static PyObject* GemRB_UseItem(PyObject * /*self*/, PyObject* args)
//
switch (forcetarget) {
case TARGET_SELF:
- gc->SetupItemUse(itemdata.slot, itemdata.headerindex, actor, GA_NO_DEAD, itemdata.TargetNumber);
+ gc->SetupItemUse(itemdata.slot, itemdata.headerindex, actor, GA_NO_DEAD, 1);
gc->TryToCast(actor, actor);
break;
case TARGET_NONE:

0 comments on commit 6d8cf95

Please sign in to comment.