summaryrefslogtreecommitdiff
path: root/src/script/script_instance.cpp
diff options
context:
space:
mode:
authorPeter Nelson <peter1138@openttd.org>2021-06-04 12:31:00 +0100
committerPeterN <peter@fuzzle.org>2021-06-12 08:05:59 +0100
commit40cec34836a694e7388a4421d746e5238a57b608 (patch)
treead5149e167a4f01b6dcf70f11905fca5f9dfa830 /src/script/script_instance.cpp
parentf1328db063fe0808a55e7ed76304491b84916146 (diff)
downloadopenttd-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