summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorCarter Anderson <mcanders1@gmail.com>2017-05-01 23:36:24 -0700
committerCarter Anderson <mcanders1@gmail.com>2017-05-01 23:41:44 -0700
commit212c6306a8c1e1306a6966ec7959916849f8a283 (patch)
treefdae89e1ee489f9427dbc6b306f850a1093a1069 /servers
parent64c31a3a9ff01b8f317c2d46e58118e1af9102d8 (diff)
Fix get_shader_type index upper bound
Diffstat (limited to 'servers')
-rw-r--r--servers/visual/shader_language.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/visual/shader_language.cpp b/servers/visual/shader_language.cpp
index dd653ea891..9fe92f0fec 100644
--- a/servers/visual/shader_language.cpp
+++ b/servers/visual/shader_language.cpp
@@ -3751,7 +3751,7 @@ String ShaderLanguage::get_shader_type(const String &p_code) {
String cur_identifier;
- for (int i = 0; i < p_code.length() + 1; i++) {
+ for (int i = 0; i < p_code.length(); i++) {
if (p_code[i] == ';') {
break;