summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-10-17 10:29:54 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-10-17 10:29:54 -0300
commitab22203791489df160c36a29a3cd8aa8b32bec04 (patch)
treeb534f9c0f3cc4e71708deebb0107a61f1216f930 /servers
parentb3cda43a0fb49e1cb9c8414077a23fa4b61ede38 (diff)
misc cleanup
Diffstat (limited to 'servers')
-rw-r--r--servers/visual/visual_server_raster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/visual/visual_server_raster.cpp b/servers/visual/visual_server_raster.cpp
index fbea60c3a6..1da536c124 100644
--- a/servers/visual/visual_server_raster.cpp
+++ b/servers/visual/visual_server_raster.cpp
@@ -1375,7 +1375,7 @@ void VisualServerRaster::_update_baked_light_sampler_dp_cache(BakedLightSampler
void VisualServerRaster::baked_light_sampler_set_resolution(RID p_baked_light_sampler,int p_resolution){
- ERR_FAIL_COND(p_resolution<4 && p_resolution>64);
+ ERR_FAIL_COND(p_resolution<4 || p_resolution>64);
VS_CHANGED;
BakedLightSampler * blsamp = baked_light_sampler_owner.get(p_baked_light_sampler);
ERR_FAIL_COND(!blsamp);