Merge branch 'GameLogic' of https://github.com/dean11/Danbias into GameLogic

This commit is contained in:
lindaandersson 2014-02-04 16:08:53 +01:00
commit d364456189
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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;