mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-08 21:14:14 +00:00
Fix short loop on func_train
This commit is contained in:
parent
ba1729708b
commit
b747a52f79
@ -736,6 +736,12 @@ void CFuncTrain::Next( void )
|
||||
return;
|
||||
}
|
||||
|
||||
if( pTarg->GetNextTarget() == pTarg )
|
||||
{
|
||||
ALERT(at_error, "train short loop!");
|
||||
return;
|
||||
}
|
||||
|
||||
// Save last target in case we need to find it again
|
||||
pev->message = pev->target;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user