GL - LevelLoader update.
This commit is contained in:
parent
9efa4fcb23
commit
8834f6a2ec
|
@ -95,7 +95,7 @@ namespace GameLogic
|
|||
struct LevelMetaData : ObjectTypeHeader
|
||||
{
|
||||
std::string levelName;
|
||||
FormatVersion levelVersion;
|
||||
int levelVersion;
|
||||
std::string levelDescription;
|
||||
std::string levelAuthor;
|
||||
int maxNumberOfPlayer;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue