| 35 | } |
| 36 | |
| 37 | const OpenLoco::SoundObjectData* SoundObject::getData() const |
| 38 | { |
| 39 | if (dataOffset == 0) |
| 40 | { |
| 41 | return nullptr; |
| 42 | } |
| 43 | return reinterpret_cast<const OpenLoco::SoundObjectData*>(reinterpret_cast<const uint8_t*>(this) + dataOffset); |
| 44 | } |
| 45 | |
| 46 | } |