move debug printing into DebugPrint, fix #233
This commit is contained in:
parent
b105991b09
commit
b18818d8a8
1 changed files with 4 additions and 4 deletions
|
@ -958,10 +958,10 @@ public:
|
|||
for (int xx = 0; xx < dtype.TileWidth; ++xx) {
|
||||
int pos = (y + yy) * (size / 2) + (x + xx);
|
||||
if (pos >= good->size()) {
|
||||
printf("BUG: RangeTargetFinder::FillBadGood.Compute out of range. "\
|
||||
"size: %d, pos: %d, " \
|
||||
"x: %d, xx: %d, y: %d, yy: %d",
|
||||
size, pos, x, xx, y, yy);
|
||||
DebugPrint("BUG: RangeTargetFinder::FillBadGood.Compute out of range. "\
|
||||
"size: %d, pos: %d, " \
|
||||
"x: %d, xx: %d, y: %d, yy: %d" _C_
|
||||
size _C_ pos _C_ x _C_ xx _C_ y _C_ yy);
|
||||
break;
|
||||
}
|
||||
if (cost < 0) {
|
||||
|
|
Loading…
Reference in a new issue