Skip to content

Commit

Permalink
- relaxed caller type check for states modified by Dehacked
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Jan 12, 2019
1 parent 159b45b commit e353201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/info.cpp
Expand Up @@ -135,7 +135,7 @@ void FState::CheckCallerType(AActor *self, AActor *stateowner)
{
ThrowAbortException(X_OTHER, "%s called without valid caller. %s expected", ActionFunc->PrintableName.GetChars(), cls->TypeName.GetChars());
}
if (!check->IsKindOf(cls))
if (!(StateFlags & STF_DEHACKED) && !check->IsKindOf(cls))
{
ThrowAbortException(X_OTHER, "Invalid class %s in function call to %s. %s expected", check->GetClass()->TypeName.GetChars(), ActionFunc->PrintableName.GetChars(), cls->TypeName.GetChars());
}
Expand Down

0 comments on commit e353201

Please sign in to comment.