Sfoglia il codice sorgente

Merge pull request #769 from dariomanesku/master

Fixing a memory overflow that caused the camera to move right all the…
Branimir Karadžić 9 anni fa
parent
commit
20213fa952
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      examples/common/entry/input.cpp

+ 1 - 1
examples/common/entry/input.cpp

@@ -72,7 +72,7 @@ struct Mouse
 struct Keyboard
 struct Keyboard
 {
 {
 	Keyboard()
 	Keyboard()
-		: m_ring(BX_COUNTOF(m_char) )
+		: m_ring(BX_COUNTOF(m_char)-4)
 	{
 	{
 	}
 	}