mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-03-22 02:41:07 +00:00
Update p_actionfunctions.cpp
Woah, this didn't work with custom inventory chains!
This commit is contained in:
parent
69ee1eb0a2
commit
fa6dfdf64c
1 changed files with 1 additions and 1 deletions
|
@ -5050,7 +5050,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_ChangeModel)
|
|||
if (self == nullptr)
|
||||
ACTION_RETURN_BOOL(false);
|
||||
|
||||
AActor* mobj = ACTION_CALL_FROM_PSPRITE() && (flags & CMDL_WEAPONTOPLAYER) ? self : stateowner;
|
||||
AActor* mobj = (ACTION_CALL_FROM_PSPRITE() && (flags & CMDL_WEAPONTOPLAYER)) || ACTION_CALL_FROM_INVENTORY() ? self : stateowner;
|
||||
|
||||
if (modelpath[(int)modelpath.Len() - 1] != '/') modelpath += '/';
|
||||
if (skinpath[(int)skinpath.Len() - 1] != '/') skinpath += '/';
|
||||
|
|
Loading…
Reference in a new issue