From 15a11860c8984f99e5390ca1d804f6a7936ca3d2 Mon Sep 17 00:00:00 2001 From: urchlay Date: Fri, 8 Jul 2005 12:16:01 +0000 Subject: [PATCH] Duh... git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@622 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/emucore/Cart3E.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/stella/src/emucore/Cart3E.cxx b/stella/src/emucore/Cart3E.cxx index ca2185bf2..e7c23159d 100644 --- a/stella/src/emucore/Cart3E.cxx +++ b/stella/src/emucore/Cart3E.cxx @@ -13,11 +13,12 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: Cart3E.cxx,v 1.2 2005-07-08 12:14:18 urchlay Exp $ +// $Id: Cart3E.cxx,v 1.3 2005-07-08 12:16:01 urchlay Exp $ //============================================================================ #include #include "Cart3E.hxx" +#include "Random.hxx" #include "System.hxx" #include "Serializer.hxx" #include "Deserializer.hxx" @@ -40,7 +41,7 @@ Cartridge3E::Cartridge3E(const uInt8* image, uInt32 size) Random random; for(uInt32 i = 0; i < 32768; ++i) { - myRAM[i] = random.next(); + myRam[i] = random.next(); } } @@ -241,7 +242,7 @@ bool Cartridge3E::save(Serializer& out) // Output RAM out.putLong(32768); for(uInt32 addr = 0; addr < 32768; ++addr) - out.putLong(myRAM[addr]); + out.putLong(myRam[addr]); } catch(char *msg) { @@ -272,7 +273,7 @@ bool Cartridge3E::load(Deserializer& in) // Input RAM uInt32 limit = (uInt32) in.getLong(); for(uInt32 addr = 0; addr < limit; ++addr) - myRAM[addr] = (uInt8) in.getLong(); + myRam[addr] = (uInt8) in.getLong(); } catch(char *msg) {