Commit 711991d4 authored by mercury233's avatar mercury233 Committed by GitHub

fix get_draw_count (#330)

fix #329
parent fadc016f
......@@ -1802,6 +1802,8 @@ int32 field::get_draw_count(uint8 playerid) {
int32 count = player[playerid].draw_count;
for(int32 i = 0; i < eset.size(); ++i) {
int32 c = eset[i]->get_value();
if(c == 0)
return 0;
if(c > count)
count = c;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment