Daniele Bartolini há 8 anos atrás
pai
commit
b58824c361
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/world/world.cpp

+ 1 - 1
src/world/world.cpp

@@ -137,7 +137,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)
 			{