Browse Source

Fixing a memory overflow that caused the camera to move right all the time.

Dario Manesku 9 years ago
parent
commit
e759e55fd2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/common/entry/input.cpp

+ 1 - 1
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)
 	{
 	}