From 55f3e079d0b6c5c07bad79523af34d9fe6f5067a Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 31 Oct 2011 18:17:21 +0000 Subject: [PATCH] chr ram was not getting initialized to anything --- src/ines.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ines.cpp b/src/ines.cpp index 9ff75283..8f0fce03 100644 --- a/src/ines.cpp +++ b/src/ines.cpp @@ -1403,6 +1403,8 @@ static int NewiNES_Init(int num) CHRRAMSize=8192; } if((VROM = (uint8 *)FCEU_dmalloc(CHRRAMSize)) == NULL) return 0; + FCEU_MemoryRand(VROM,CHRRAMSize); + UNIFchrrama=VROM; SetupCartCHRMapping(0,VROM,CHRRAMSize,1); AddExState(VROM,CHRRAMSize, 0, "CHRR");