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

View File

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