diff options
Diffstat (limited to 'engines/cge2/vmenu.cpp')
-rw-r--r-- | engines/cge2/vmenu.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/engines/cge2/vmenu.cpp b/engines/cge2/vmenu.cpp index fa4c29c1d7..a84078f7a6 100644 --- a/engines/cge2/vmenu.cpp +++ b/engines/cge2/vmenu.cpp @@ -100,15 +100,14 @@ char *VMenu::vmGather(Common::Array<Choice *> list) { ++h; } _vmgt = new char[len + h]; - if (_vmgt) { - *_vmgt = '\0'; - for (uint i = 0; i < list.size(); i++) { - if (*_vmgt) - strcat(_vmgt, "|"); - strcat(_vmgt, list[i]->_text); - ++h; - } + *_vmgt = '\0'; + for (uint i = 0; i < list.size(); i++) { + if (*_vmgt) + strcat(_vmgt, "|"); + strcat(_vmgt, list[i]->_text); + ++h; } + return _vmgt; } |