Fix get_shader_type index upper bound

This commit is contained in:
Carter Anderson 2017-05-01 23:36:24 -07:00
parent 64c31a3a9f
commit 212c6306a8

View file

@ -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;