mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- And this is what I get for not making sure it compiles...
SVN r3577 (trunk)
This commit is contained in:
parent
e51bd95d03
commit
5123a6b74b
1 changed files with 2 additions and 1 deletions
|
@ -4679,10 +4679,11 @@ void P_SpawnBlood (fixed_t x, fixed_t y, fixed_t z, angle_t dir, int damage, AAc
|
|||
{
|
||||
advance = 2;
|
||||
}
|
||||
FActorInfo *ai = th->GetClass()->ActorInfo;
|
||||
for (; advance > 0; --advance)
|
||||
{
|
||||
// [RH] Do not set to a state we do not own.
|
||||
if (th->SpawnState + advance < th->GetClass()->ActorInfo->OwnedStates + NumOwnedStates)
|
||||
if (th->SpawnState + advance < ai->OwnedStates + ai->NumOwnedStates)
|
||||
{
|
||||
th->SetState(th->SpawnState + advance);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue