diff options
author | Peter Nelson <peter1138@openttd.org> | 2021-06-04 12:31:00 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2021-06-12 08:05:59 +0100 |
commit | 40cec34836a694e7388a4421d746e5238a57b608 (patch) | |
tree | ad5149e167a4f01b6dcf70f11905fca5f9dfa830 /src/script/script_instance.cpp | |
parent | f1328db063fe0808a55e7ed76304491b84916146 (diff) | |
download | openttd-40cec34836a694e7388a4421d746e5238a57b608.tar.xz |
Change: Skip creating a RealSpriteGroup when there is only one result.
This avoids checking RSG for empty sets every time they are evaluated.
This might alter behaviour in cases of a malformed NewGRF file.
Diffstat (limited to 'src/script/script_instance.cpp')
0 files changed, 0 insertions, 0 deletions