diff options
author | Einar Johan Trøan Sømåen | 2012-07-22 22:55:54 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-22 22:55:54 +0200 |
commit | f6a5a2a0d57d2e0829aa93ac0b30d3c0e1bf8838 (patch) | |
tree | 11fc0f9994c0e938027f767dc5e054bd42c921fd /engines/wintermute/ad/ad_rot_level.cpp | |
parent | 30ada3c13f63ef35ccdd21ca76fb45aa9fb1dc3c (diff) | |
download | scummvm-rg350-f6a5a2a0d57d2e0829aa93ac0b30d3c0e1bf8838.tar.gz scummvm-rg350-f6a5a2a0d57d2e0829aa93ac0b30d3c0e1bf8838.tar.bz2 scummvm-rg350-f6a5a2a0d57d2e0829aa93ac0b30d3c0e1bf8838.zip |
WINTERMUTE: Wrap away base_script_holder's _filename field in getters/setters, avoiding direct writes.
Diffstat (limited to 'engines/wintermute/ad/ad_rot_level.cpp')
-rw-r--r-- | engines/wintermute/ad/ad_rot_level.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/wintermute/ad/ad_rot_level.cpp b/engines/wintermute/ad/ad_rot_level.cpp index e758eaa1f6..b9949d9f9b 100644 --- a/engines/wintermute/ad/ad_rot_level.cpp +++ b/engines/wintermute/ad/ad_rot_level.cpp @@ -62,8 +62,7 @@ bool AdRotLevel::loadFile(const char *filename) { bool ret;
- _filename = new char [strlen(filename) + 1];
- strcpy(_filename, filename);
+ setFilename(filename);
if (DID_FAIL(ret = loadBuffer(buffer, true))) _gameRef->LOG(0, "Error parsing ROTATION_LEVEL file '%s'", filename);
|