Skip to content

Commit

Permalink
Add max pling count guard
Browse files Browse the repository at this point in the history
  • Loading branch information
marynate committed Jan 12, 2016
1 parent eb35ef2 commit b3a6de5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ void UFluidSurfaceComponent::Init( )
/** Pling */
void UFluidSurfaceComponent::Pling( const FVector& Position, float Strength, float Radius )
{
if (NumPLing >= MAX_FLUID_PLINGS) return;

int HitX, HitY;
GetNearestIndex( Position, HitX, HitY );

Expand Down

0 comments on commit b3a6de5

Please sign in to comment.