From e759e55fd23bf90e0b75ae0ed48cc4fd9f5b7707 Mon Sep 17 00:00:00 2001 From: Dario Manesku Date: Thu, 21 Apr 2016 19:47:57 +0200 Subject: [PATCH] Fixing a memory overflow that caused the camera to move right all the time. --- examples/common/entry/input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/common/entry/input.cpp b/examples/common/entry/input.cpp index bb9925990..5e67f23c1 100644 --- a/examples/common/entry/input.cpp +++ b/examples/common/entry/input.cpp @@ -72,7 +72,7 @@ struct Mouse struct Keyboard { Keyboard() - : m_ring(BX_COUNTOF(m_char) ) + : m_ring(BX_COUNTOF(m_char)-4) { }