Fixed error with reading lights from level format.

This commit is contained in:
Pontus Fransson 2014-02-25 16:07:50 +01:00
parent 2052f60ea4
commit d56d1d7569
1 changed files with 4 additions and 4 deletions

View File

@ -23,9 +23,9 @@ namespace GameLogic
void ParseLight(char* buffer, BasicLight& header, int& size) void ParseLight(char* buffer, BasicLight& header, int& size)
{ {
int start = 0; int start = 0;
memcpy(&header.typeID, &buffer[start], 40); memcpy(&header.typeID, &buffer[start], 4);
start += 40; start += 4;
/*
memcpy(&header.lightType, &buffer[start], 4); memcpy(&header.lightType, &buffer[start], 4);
start += 4; start += 4;
@ -39,7 +39,7 @@ namespace GameLogic
start += 4; start += 4;
memcpy(&header.intensity, &buffer[start], 4); memcpy(&header.intensity, &buffer[start], 4);
start += 4;*/ start += 4;
size += start; size += start;