diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-07-07 23:08:51 +0200 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-07-07 23:08:51 +0200 |
commit | 9a77d748c0d4e1c3dceb40216b9a345073032361 (patch) | |
tree | 3fef755e93df1df19207982deca39610d92c950f /servers | |
parent | d897131ac555de84afe9ca6845abf87c26957895 (diff) |
Fixes minor issues found by static analyzer
Diffstat (limited to 'servers')
-rw-r--r-- | servers/arvr_server.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/servers/arvr_server.cpp b/servers/arvr_server.cpp index f6a01939da..7d89764d20 100644 --- a/servers/arvr_server.cpp +++ b/servers/arvr_server.cpp @@ -87,11 +87,11 @@ real_t ARVRServer::get_world_scale() const { }; void ARVRServer::set_world_scale(real_t p_world_scale) { - if (world_scale < 0.01) { - world_scale = 0.01; - } else if (world_scale > 1000.0) { - world_scale = 1000.0; - }; + if (p_world_scale < 0.01) { + p_world_scale = 0.01; + } else if (p_world_scale > 1000.0) { + p_world_scale = 1000.0; + } world_scale = p_world_scale; }; |