diff options
author | uruk | 2014-05-22 14:01:05 +0200 |
---|---|---|
committer | uruk | 2014-05-22 14:01:05 +0200 |
commit | 8a1b90acaf85166200e84f823471fbc497f9711e (patch) | |
tree | 54e0714b12fa67bf2184094bd94cace44eb9f388 | |
parent | bf820481b7077ed3c6dc0599377bbbc4655ff8a7 (diff) | |
download | scummvm-rg350-8a1b90acaf85166200e84f823471fbc497f9711e.tar.gz scummvm-rg350-8a1b90acaf85166200e84f823471fbc497f9711e.tar.bz2 scummvm-rg350-8a1b90acaf85166200e84f823471fbc497f9711e.zip |
CGE2: Fix loadSprite().
-rw-r--r-- | engines/cge2/cge2_main.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/cge2/cge2_main.cpp b/engines/cge2/cge2_main.cpp index 591f28a57d..3a4ff180c0 100644 --- a/engines/cge2/cge2_main.cpp +++ b/engines/cge2/cge2_main.cpp @@ -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 == '@') { |