diff --git a/src/ui.rs b/src/ui.rs index 364602a..7de61ee 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -14,8 +14,8 @@ pub fn draw(state: &State, _engine: &EngineContext<'_>) { start_positon.y += 0.5 * section_size.y + 0.5 * section_size.y; // draw fill level { - let gohst = &state.ghost; - let percent = gohst.charge / gohst.max_charge; + let ghost = &state.ghost; + let percent = ghost.charge / ghost.max_charge; let mut size = section_size; size.y = section_size.y * section_count as f32 * percent; let mut position = start_positon;