aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2015-12-29 12:32:09 +0100
committerStrangerke2015-12-29 12:32:09 +0100
commit583f86be27e2aa41bf4ce19c6c5fc9e42615e1bd (patch)
tree52358b6644c4b8d3332956280e67f5ce86587845 /engines
parent0ca10a7d405188193fb17ec3bcfce9146d03e38d (diff)
downloadscummvm-rg350-583f86be27e2aa41bf4ce19c6c5fc9e42615e1bd.tar.gz
scummvm-rg350-583f86be27e2aa41bf4ce19c6c5fc9e42615e1bd.tar.bz2
scummvm-rg350-583f86be27e2aa41bf4ce19c6c5fc9e42615e1bd.zip
LAB: Simplify code in perFlipButton
Diffstat (limited to 'engines')
-rw-r--r--engines/lab/engine.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/lab/engine.cpp b/engines/lab/engine.cpp
index 93b7cb4324..ca6e510ccc 100644
--- a/engines/lab/engine.cpp
+++ b/engines/lab/engine.cpp
@@ -159,9 +159,7 @@ void LabEngine::perFlipButton(uint16 buttonId) {
for (ButtonList::iterator button = _moveButtonList.begin(); button != _moveButtonList.end(); ++button) {
Button *topButton = *button;
if (topButton->_buttonId == buttonId) {
- Image *tmpImage = topButton->_image;
- topButton->_image = topButton->_altImage;
- topButton->_altImage = tmpImage;
+ SWAP<Image *>(topButton->_image, topButton->_altImage);
if (!_alternate)
topButton->_image->drawImage(topButton->_x, topButton->_y);