aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMatthew Hoops2012-04-07 16:35:50 -0400
committerMatthew Hoops2012-04-07 16:35:50 -0400
commit1fb5238cf32a1fea07e26ba3693c7d6c97dd9023 (patch)
treeabcc545f91987e94f7fe6a7fc4207ae7b786fd25 /engines
parenta2454f6563d2a7e7eadb15668e8f2ff76a4a0a28 (diff)
downloadscummvm-rg350-1fb5238cf32a1fea07e26ba3693c7d6c97dd9023.tar.gz
scummvm-rg350-1fb5238cf32a1fea07e26ba3693c7d6c97dd9023.tar.bz2
scummvm-rg350-1fb5238cf32a1fea07e26ba3693c7d6c97dd9023.zip
PEGASUS: Fix potentially uninitialized hotspot pointer
Should fix some crashes on Windows
Diffstat (limited to 'engines')
-rw-r--r--engines/pegasus/input.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/pegasus/input.cpp b/engines/pegasus/input.cpp
index ef9d9a6b8e..c60f00ddad 100644
--- a/engines/pegasus/input.cpp
+++ b/engines/pegasus/input.cpp
@@ -180,7 +180,7 @@ InputHandler *InputHandler::setInputHandler(InputHandler *currentHandler) {
void InputHandler::pollForInput() {
if (_inputHandler) {
Input input;
- Hotspot *cursorSpot;
+ Hotspot *cursorSpot = 0;
InputHandler::getInput(input, cursorSpot);
if (_inputHandler->isClickInput(input, cursorSpot))