GL - LevelLoader update.

This commit is contained in:
Pontus Fransson 2014-02-04 14:30:45 +01:00
parent 9efa4fcb23
commit 8834f6a2ec
2 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ namespace GameLogic
struct LevelMetaData : ObjectTypeHeader struct LevelMetaData : ObjectTypeHeader
{ {
std::string levelName; std::string levelName;
FormatVersion levelVersion; int levelVersion;
std::string levelDescription; std::string levelDescription;
std::string levelAuthor; std::string levelAuthor;
int maxNumberOfPlayer; int maxNumberOfPlayer;

View File

@ -58,8 +58,8 @@ namespace GameLogic
header.levelName.assign(&tempName[0], &tempName[tempSize]); header.levelName.assign(&tempName[0], &tempName[tempSize]);
start += tempSize; start += tempSize;
memcpy(&header.levelVersion, &buffer[start], 8); memcpy(&header.levelVersion, &buffer[start], 4);
start += 8; start += 4;
memcpy(&tempSize, &buffer[start], 4); memcpy(&tempSize, &buffer[start], 4);
start +=4; start +=4;