aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/base_quick_msg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/base/base_quick_msg.cpp')
-rw-r--r--engines/wintermute/base/base_quick_msg.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/wintermute/base/base_quick_msg.cpp b/engines/wintermute/base/base_quick_msg.cpp
index d672e39c6b..bf38adb578 100644
--- a/engines/wintermute/base/base_quick_msg.cpp
+++ b/engines/wintermute/base/base_quick_msg.cpp
@@ -34,14 +34,18 @@ namespace WinterMute {
//////////////////////////////////////////////////////////////////////////
BaseQuickMsg::BaseQuickMsg(BaseGame *inGame, const char *text): BaseClass(inGame) {
_text = new char [strlen(text) + 1];
- if (_text) strcpy(_text, text);
+ if (_text) {
+ strcpy(_text, text);
+ }
_startTime = _gameRef->_currentTime;
}
//////////////////////////////////////////////////////////////////////////
BaseQuickMsg::~BaseQuickMsg() {
- if (_text) delete[] _text;
+ if (_text) {
+ delete[] _text;
+ }
}