diff options
Diffstat (limited to 'engines/cge2/cge2_main.cpp')
-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 == '@') { |