This isn't attached to maxHudId well.  Use
```C++
u32 maxHudId() { return hud.size(); }
```
or
```C++
u32 maxHudId() {
    return hud.size();
}
```
or
```C++
u32 maxHudId()
{
    return hud.size();
}
```