diff --git a/lib/irrlicht/source/Irrlicht/CIrrDeviceWayland.cpp b/lib/irrlicht/source/Irrlicht/CIrrDeviceWayland.cpp index c7520b6e3..0297210f3 100644 --- a/lib/irrlicht/source/Irrlicht/CIrrDeviceWayland.cpp +++ b/lib/irrlicht/source/Irrlicht/CIrrDeviceWayland.cpp @@ -425,7 +425,7 @@ public: { CIrrDeviceWayland* device = static_cast(data); - device->m_repeat_rate = 1000 / rate; + device->m_repeat_rate = rate == 0 ? 0 : 1000 / rate; device->m_repeat_delay = delay; }