CGE2: Fix loadSprite().

This commit is contained in:
uruk 2014-05-22 14:01:05 +02:00
parent bf820481b7
commit 8a1b90acaf

View File

@ -99,11 +99,10 @@ void CGE2Engine::loadSprite(const char *fname, int ref, int scene, V3D &pos) {
for (line = sprf.readLine(); !sprf.eos(); line = sprf.readLine()){
int len = line.size();
Common::strlcpy(tmpStr, line.c_str(), sizeof(tmpStr));
if (len == 0 || *tmpStr == ';')
continue;
Common::strlcpy(tmpStr, line.c_str(), sizeof(tmpStr));
char *p;
p = token(tmpStr);
if (*p == '@') {