summaryrefslogtreecommitdiff
path: root/core/input/shortcut.cpp
diff options
context:
space:
mode:
authorlawnjelly <lawnjelly@gmail.com>2022-03-07 11:15:45 +0000
committerlawnjelly <lawnjelly@gmail.com>2022-03-07 11:15:45 +0000
commit0565676893aa761948e2a039c993e1d9d51f31f1 (patch)
treed2a6d32661f7964a5458b665c884cb528904742d /core/input/shortcut.cpp
parent6c3170e875bcb2606f08cde731f8b800801ef751 (diff)
Protection for array operator for Vector2 / 3 in DEV builds
A previous PR had changed the array operator to give unbounded access. This could cause crashes where old code depended on this previous safe behaviour. This PR adds DEV_ASSERT macros for out of bound access to DEV builds, allowing us to quickly identify bugs in calling code, without affecting performance in release or release_debug editor builds.
Diffstat (limited to 'core/input/shortcut.cpp')
0 files changed, 0 insertions, 0 deletions