Explorar el Código

Fix wrong event size calculation

Daniele Bartolini hace 8 años
padre
commit
a3b971986c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/world/world.cpp

+ 1 - 1
src/world/world.cpp

@@ -179,7 +179,7 @@ void World::update_scene(f32 dt)
 			const EventHeader* eh = (EventHeader*)&events[read];
 			const char* data = (char*)&eh[1];
 
-			read += sizeof(eh) + eh->size;
+			read += sizeof(*eh) + eh->size;
 
 			switch (eh->type)
 			{