aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/ui/ui_object.cpp
diff options
context:
space:
mode:
authorTobia Tesan2013-09-20 14:04:20 +0200
committerTobia Tesan2013-09-21 23:22:27 +0200
commit1361fcde7c0cf0cecb6896288465551d1eb195f9 (patch)
treedfdce0469741b3443ea92e57adf73046d92fce1b /engines/wintermute/ui/ui_object.cpp
parent91ebad46d3adc4cf48a14f0f1bbfa9e41e28ecad (diff)
downloadscummvm-rg350-1361fcde7c0cf0cecb6896288465551d1eb195f9.tar.gz
scummvm-rg350-1361fcde7c0cf0cecb6896288465551d1eb195f9.tar.bz2
scummvm-rg350-1361fcde7c0cf0cecb6896288465551d1eb195f9.zip
WINTERMUTE: Avoid feeding setWidth negative values
Diffstat (limited to 'engines/wintermute/ui/ui_object.cpp')
-rw-r--r--engines/wintermute/ui/ui_object.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/wintermute/ui/ui_object.cpp b/engines/wintermute/ui/ui_object.cpp
index e4bcb2aa6b..0824f1f9bd 100644
--- a/engines/wintermute/ui/ui_object.cpp
+++ b/engines/wintermute/ui/ui_object.cpp
@@ -657,14 +657,12 @@ int32 UIObject::getHeight() {
}
void UIObject::setWidth(int32 width) {
- // assert (width >= 0);
- // This would be ideal, but ATM must be failing pretty much everywhere.
+ assert (width >= 0);
_width = width;
}
void UIObject::setHeight(int32 height) {
- // assert (height >= 0);
- // This would be ideal, but ATM must be failing pretty much everywhere.
+ assert (height >= 0);
_height = height;
}