Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

GameScript::DropInventoryEX: work on the target's inventory not the S…

…enders

fixes rock traps in iwd2 ar4100 (41prlev2.baf), monk stripping in the
monastery tests and more
  • Loading branch information...
commit 807e0c042ff8ed52895bc354bfe59badd9c11e24 1 parent f139495
@lynxlynxlynx lynxlynxlynx authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  gemrb/core/GameScript/Actions.cpp
View
2  gemrb/core/GameScript/Actions.cpp
@@ -4281,7 +4281,7 @@ void GameScript::DropInventoryEX(Scriptable *Sender, Action* parameters)
return;
}
Inventory *inv = NULL;
- switch (Sender->Type) {
+ switch (tar->Type) {
case ST_ACTOR:
inv = &(((Actor *) tar)->inventory);
break;
Please sign in to comment.
Something went wrong with that request. Please try again.