Skip to content

Commit

Permalink
static_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
DubbleClick committed Aug 10, 2023
1 parent a2e638b commit 30acfbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GWToolboxdll/Widgets/Minimap/GameWorldRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,10 @@ void GameWorldRenderer::Render(IDirect3DDevice9* device)
void GameWorldRenderer::LoadSettings(const ToolboxIni* ini, const char* section)
{
// load the rendering settings from disk
render_max_distance = ini->GetDoubleValue(section, VAR_NAME(render_max_distance), render_max_distance);
render_max_distance = static_cast<float>(ini->GetDoubleValue(section, VAR_NAME(render_max_distance), render_max_distance));
lerp_steps_per_line = ini->GetLongValue(section, VAR_NAME(lerp_steps_per_line), lerp_steps_per_line);
}

void GameWorldRenderer::SaveSettings(ToolboxIni* ini, const char* section)
{
// save the rendering settings to disk
Expand Down

0 comments on commit 30acfbe

Please sign in to comment.