diff options
author | Colin Snover | 2017-12-19 19:27:13 -0600 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-18 16:30:05 +0200 |
commit | 481b608c51858d0b6afc3cfb461664fc9575c6a0 (patch) | |
tree | 984187ecdb5246049f02a7e46aa802739fedd93e /engines/parallaction/objects.h | |
parent | bc3c8bd8d251b7a0631e1993e6365719382eacf6 (diff) | |
download | scummvm-rg350-481b608c51858d0b6afc3cfb461664fc9575c6a0.tar.gz scummvm-rg350-481b608c51858d0b6afc3cfb461664fc9575c6a0.tar.bz2 scummvm-rg350-481b608c51858d0b6afc3cfb461664fc9575c6a0.zip |
PARALLACTION: Replace use of strdup with Common::String & malloc
Diffstat (limited to 'engines/parallaction/objects.h')
-rw-r--r-- | engines/parallaction/objects.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/engines/parallaction/objects.h b/engines/parallaction/objects.h index 7cee0460c1..9842d7985b 100644 --- a/engines/parallaction/objects.h +++ b/engines/parallaction/objects.h @@ -112,13 +112,12 @@ struct Command { bool _valid; Command(); - ~Command(); // Common fields uint32 _flags; ZonePtr _zone; Common::String _zoneName; - char* _string; + Common::String _string; uint16 _callable; uint16 _object; Common::Point _move; @@ -132,7 +131,7 @@ struct Command { int _zeta1; int _zeta2; int _characterId; - char* _string2; + Common::String _string2; int _musicCommand; int _musicParm; }; @@ -428,14 +427,12 @@ struct Instruction { // BRA specific byte _colors[3]; ScriptVar _opC; - char *_text; - char *_text2; + Common::String _text; + Common::String _text2; int _y; uint32 _endif; Instruction(); - ~Instruction(); - }; enum { @@ -474,7 +471,7 @@ protected: public: GfxObj *gfxobj; - char *_scriptName; + Common::String _scriptName; Animation(); virtual ~Animation(); |