From 5e8239b6254ebe16d9f6acfbcaf97fb22f825b6c Mon Sep 17 00:00:00 2001 From: n-a-c-h Date: Wed, 28 May 2008 09:04:14 +0000 Subject: [PATCH] Lets quiet a warning. git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@544 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/win32/VBA.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win32/VBA.cpp b/src/win32/VBA.cpp index 33011697..ef4e3758 100644 --- a/src/win32/VBA.cpp +++ b/src/win32/VBA.cpp @@ -531,7 +531,7 @@ static BOOL doStuffBad(VBA *vba, int num) typedef bool (VBA::*trapPointer)(bool); static trapPointer trapPointers[6]; static trapPointer *mainTrapPointer = trapPointers; -static trapPointer secondaryTrapPointer = trapPointers[0]; +static trapPointer secondaryTrapPointer = &VBA::trap; bool VBA::trap(bool value) { @@ -542,7 +542,7 @@ bool VBA::trap(bool value) BOOL VBA::InitInstance() { BOOL (*pointFamily[])(VBA *, int) = { doStuffGood, doStuffBad, doStuffBad, doStuffBad, doStuffBad, doStuffBad, doStuffBad, doStuffBad }; - trapPointers[0] = trapPointers[1] = trapPointers[3] = trapPointers[4] = &VBA::trap; + trapPointers[0] = trapPointers[1] = trapPointers[3] = trapPointers[4] = secondaryTrapPointer; trapPointers[2] = &VBA::updateRenderMethod; trapPointers[5] = &VBA::updateRenderMethod0;