mirror of
https://github.com/encounter/aurora.git
synced 2025-07-04 20:26:07 +00:00
Card: Zero out game array within setCurrentGame for nullptr
Previously this was zeroing out the maker array, which it shouldn't be doing.
This commit is contained in:
parent
8895960bad
commit
62b03a7cde
@ -691,7 +691,7 @@ bool Card::moveFileTo(FileHandle& fh, Card& dest)
|
||||
|
||||
void Card::setCurrentGame(const char* game) {
|
||||
if (game == nullptr) {
|
||||
memset(m_game, 0, 2);
|
||||
memset(m_game, 0, sizeof(m_game));
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user