Procházet zdrojové kódy

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

Dario Manesku před 9 roky
rodič
revize
e759e55fd2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)
 	{
 	}