Add assert to improve backtraces on NULL function pointer

This commit is contained in:
Christian Göttsche 2021-08-10 21:15:16 +02:00
parent ba5ef1ac8b
commit 796bc36fe0
1 changed files with 1 additions and 0 deletions

View File

@ -183,6 +183,7 @@ void Header_draw(const Header* this) {
else else
actualWidth = width; actualWidth = width;
assert(meter->draw);
meter->draw(meter, x, y, actualWidth); meter->draw(meter, x, y, actualWidth);
y += meter->h; y += meter->h;
} }