aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/graphics/gui.cpp')
-rw-r--r--engines/sci/graphics/gui.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sci/graphics/gui.cpp b/engines/sci/graphics/gui.cpp
index 1345da7dea..d82e16bbf9 100644
--- a/engines/sci/graphics/gui.cpp
+++ b/engines/sci/graphics/gui.cpp
@@ -992,9 +992,10 @@ void SciGui::frameOut() {
}
}
-void SciGui::drawRobot() {
- Robot *test = new Robot(_s->resMan, _screen, 91);
+void SciGui::drawRobot(GuiResourceId robotId) {
+ Robot *test = new Robot(_s->resMan, _screen, robotId);
test->draw();
+ delete test;
}
#endif