Files
Bubberstation/code/modules/vehicles
SkyratBot 9cb9f02051 [MIRROR] Fixes Runtime When Thanking Non-Existent Clown [MDB IGNORE] (#25666)
* 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>
2023-12-17 10:06:06 -05:00
..