mirror of https://github.com/AxioDL/kabufuda.git
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
222fb5c179
commit
215cb25c5c
|
@ -689,7 +689,7 @@ bool Card::moveFileTo(FileHandle& fh, Card& dest)
|
||||||
|
|
||||||
void Card::setCurrentGame(const char* game) {
|
void Card::setCurrentGame(const char* game) {
|
||||||
if (game == nullptr) {
|
if (game == nullptr) {
|
||||||
memset(m_game, 0, 2);
|
memset(m_game, 0, sizeof(m_game));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue