diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/lab/engine.cpp | 4 |
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); |