Lets quiet a warning.

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@544 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
n-a-c-h 2008-05-28 09:04:14 +00:00
parent 0227ab6f5a
commit 5e8239b625
1 changed files with 2 additions and 2 deletions

View File

@ -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;