lucasart / Demolito

UCI Chess Engine
GNU General Public License v3.0
45 stars 9 forks source link

erase hash entry when not found #127

Closed lucasart closed 5 years ago

lucasart commented 5 years ago

we need to set he.data=0 to be on the safe side when the entry is not found. see singular extensions, checking he.move == currentMove could return true, undefined behavior (use of uninitialized variable)…

lucasart commented 5 years ago

actually, no bug. condition can't happen with he.move = 0. though worth making code more robust by setting he.data = 0.