[0.17.10.0] Copying a counter's value to itself in OnReachedMax/Min crashes the game

It’s a pretty silly thing to do, but the concern is that it hard crashes the game and could potentially be used maliciously in co-op condos.

Also affects OnReachedMin.

Steps to Reproduce

Add a Copy action to a counter’s OnReachedMax event and have it copy its value to itself.
Set up a button that sets the counter to its maximum value.
Press the button.
Crash.

What I expected to happen

Nothing! A counter that copies itself to itself probably shouldn’t do anything, as it hasn’t changed.

What happened

Presumably an infinite loop where the counter keeps copying its maximum value to itself, continuously firing OnReachedMax.

1 Like

Fixed in the next update.

3 Likes