diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-07-08 08:16:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-08 08:16:50 +0200 |
commit | af801820169865498f074ea9f155e680fc6db027 (patch) | |
tree | 552484a6f3a9336c344bcae53428c54345c0035b /servers | |
parent | 17e9030e485e0b9147fa573d45ab71f606b3442b (diff) | |
parent | 9a77d748c0d4e1c3dceb40216b9a345073032361 (diff) |
Merge pull request #30407 from qarmin/small_fixess
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; }; |