replaced c-style array with c++ array

This commit is contained in:
black
2025-07-04 21:51:43 +02:00
parent 762b806fe7
commit cfaacbd26f
4 changed files with 8 additions and 6 deletions

View File

@@ -10,9 +10,9 @@ Memory *Memory::getInstance() {
}
void Memory::store(const int address, const int value) {
m_memory[address] = value;
m_memory.at(address) = value;
}
int Memory::load(const int address) const {
return m_memory[address];
return m_memory.at(address);
}