diff options
author | Filippos Karapetis | 2017-03-22 04:11:49 +0200 |
---|---|---|
committer | Filippos Karapetis | 2017-03-22 04:11:49 +0200 |
commit | f3e81b5f17872186f7c67a551876dd78f268865c (patch) | |
tree | 3465c6ec7a4664cee4b7e893e8e0e0d3c5845603 /engines/fullpipe/gfx.cpp | |
parent | 728b23af2ad939e3da920a41b85730689a1aa71f (diff) | |
download | scummvm-rg350-f3e81b5f17872186f7c67a551876dd78f268865c.tar.gz scummvm-rg350-f3e81b5f17872186f7c67a551876dd78f268865c.tar.bz2 scummvm-rg350-f3e81b5f17872186f7c67a551876dd78f268865c.zip |
FULLPIPE: Use Common::String in all scene object names
Diffstat (limited to 'engines/fullpipe/gfx.cpp')
-rw-r--r-- | engines/fullpipe/gfx.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp index 619f41d6da..6fd720a52d 100644 --- a/engines/fullpipe/gfx.cpp +++ b/engines/fullpipe/gfx.cpp @@ -41,7 +41,6 @@ Background::Background() { _bigPictureArray1Count = 0; _bigPictureArray2Count = 0; _bigPictureArray = 0; - _bgname = 0; _palette = 0; } @@ -260,7 +259,6 @@ GameObject::GameObject() { _priority = 0; _field_20 = 0; _field_8 = 0; - _objectName = 0; } GameObject::GameObject(GameObject *src) { @@ -268,8 +266,7 @@ GameObject::GameObject(GameObject *src) { _flags = 0; _id = src->_id; - _objectName = (char *)calloc(strlen(src->_objectName) + 1, 1); - strncpy(_objectName, src->_objectName, strlen(src->_objectName)); + _objectName = src->_objectName; _ox = src->_ox; _oy = src->_oy; @@ -279,7 +276,6 @@ GameObject::GameObject(GameObject *src) { } GameObject::~GameObject() { - free(_objectName); } bool GameObject::load(MfcArchive &file) { |