From 8834f6a2ec17e90a34ac3925e8ca7782680d54f3 Mon Sep 17 00:00:00 2001 From: Pontus Fransson Date: Tue, 4 Feb 2014 14:30:45 +0100 Subject: [PATCH] GL - LevelLoader update. --- Code/Game/GameLogic/LevelLoader/ObjectDefines.h | 2 +- Code/Game/GameLogic/LevelLoader/ParseFunctions.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Code/Game/GameLogic/LevelLoader/ObjectDefines.h b/Code/Game/GameLogic/LevelLoader/ObjectDefines.h index 553db824..7c924976 100644 --- a/Code/Game/GameLogic/LevelLoader/ObjectDefines.h +++ b/Code/Game/GameLogic/LevelLoader/ObjectDefines.h @@ -95,7 +95,7 @@ namespace GameLogic struct LevelMetaData : ObjectTypeHeader { std::string levelName; - FormatVersion levelVersion; + int levelVersion; std::string levelDescription; std::string levelAuthor; int maxNumberOfPlayer; diff --git a/Code/Game/GameLogic/LevelLoader/ParseFunctions.cpp b/Code/Game/GameLogic/LevelLoader/ParseFunctions.cpp index 8d51f308..68631bf0 100644 --- a/Code/Game/GameLogic/LevelLoader/ParseFunctions.cpp +++ b/Code/Game/GameLogic/LevelLoader/ParseFunctions.cpp @@ -58,8 +58,8 @@ namespace GameLogic header.levelName.assign(&tempName[0], &tempName[tempSize]); start += tempSize; - memcpy(&header.levelVersion, &buffer[start], 8); - start += 8; + memcpy(&header.levelVersion, &buffer[start], 4); + start += 4; memcpy(&tempSize, &buffer[start], 4); start +=4;