Jelajahi Sumber

Merge pull request #769 from dariomanesku/master

Fixing a memory overflow that caused the camera to move right all the…
Branimir Karadžić 9 tahun lalu
induk
melakukan
20213fa952
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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)
 	{
 	}