Skip to content

Commit 71713bf

Browse files
committed
update ROM cartridge to validate the member variable contents instead of the parameters (they have been moved)
1 parent df53cca commit 71713bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcommon/src/bus/cartridges/rom_cartridge.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ namespace vcc::bus::cartridges
4141
throw ::std::invalid_argument("Cannot construct ROM Cartridge. The cartridge context is null.");
4242
}
4343

44-
if (name.empty())
44+
if (name_.empty())
4545
{
4646
throw ::std::invalid_argument("Cannot construct ROM Cartridge. The catalog name is empty.");
4747
}
4848

49-
if (buffer.empty())
49+
if (buffer_.empty())
5050
{
5151
throw ::std::invalid_argument("Cannot construct ROM Cartridge. The ROM buffer is empty.");
5252
}

0 commit comments

Comments
 (0)