Skip to content

Commit

Permalink
CGE2: Fix loadSprite().
Browse files Browse the repository at this point in the history
  • Loading branch information
uruk committed May 22, 2014
1 parent bf82048 commit 8a1b90a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions engines/cge2/cge2_main.cpp
Expand Up @@ -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 == '@') {
Expand Down

0 comments on commit 8a1b90a

Please sign in to comment.