mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-23 07:26:05 +00:00
* Fixes Runtime When Thanking Non-Existent Clown (#80337) ## About The Pull Request Currently, attempting to thank the driver of a clown car when none exists causes a runtime. This is because while there is logic to ensure we don't attempt to thank a driver if there is none, said logic only checks the result of a pick() called on the list of drivers, which will runtime if the list is empty. This PR fixes the error by checking if the the driver list is empty first, then using pick() solely for choosing a driver to thank. ## Why It's Good For The Game While this isn't a very common runtime in normal gameplay, it is a bug and should be fixed regardless. ## Changelog 🆑 fix: Fixed runtime regarding thanking non-existent clown car drivers /🆑 * Fixes Runtime When Thanking Non-Existent Clown --------- Co-authored-by: IndieanaJones <47086570+IndieanaJones@users.noreply.github.com>