From 1292031e3866ec7391e39672231417972804f277 Mon Sep 17 00:00:00 2001 From: rainwarrior Date: Wed, 28 Jan 2015 18:31:14 +0000 Subject: [PATCH] initializing pageNumbersLoaded so that debugging labels will load correctly on first use --- trunk/src/drivers/win/debuggersp.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/trunk/src/drivers/win/debuggersp.cpp b/trunk/src/drivers/win/debuggersp.cpp index abde934d..8f6fe9f9 100644 --- a/trunk/src/drivers/win/debuggersp.cpp +++ b/trunk/src/drivers/win/debuggersp.cpp @@ -47,7 +47,10 @@ Name* pageNames[32] = {0}; //the maximum number of pages we could have is 32, ba //int loadedBank = -1; //new -int pageNumbersLoaded[32]; //TODO - need to initialize these to -1 somehow +int pageNumbersLoaded[32] = { + -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, + -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, +}; Name* ramBankNames = 0; bool ramBankNamesLoaded = false;