Skip to content

Commit cdc86e2

Browse files
authored
fix draw 0 (#752)
1 parent e15beaa commit cdc86e2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

operations.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,10 @@ int32_t field::draw(uint16_t step, effect* reason_effect, uint32_t reason, uint8
343343
returns.ivalue[0] = 0;
344344
return TRUE;
345345
}
346+
if(count == 0) {
347+
returns.ivalue[0] = 0;
348+
return TRUE;
349+
}
346350
core.overdraw[playerid] = FALSE;
347351
for(int32_t i = 0; i < count; ++i) {
348352
if(player[playerid].list_main.empty()) {

0 commit comments

Comments
 (0)