summaryrefslogtreecommitdiff
path: root/src/script_to_header.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/script_to_header.py')
-rw-r--r--src/script_to_header.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script_to_header.py b/src/script_to_header.py
index 452a09d..e62984e 100644
--- a/src/script_to_header.py
+++ b/src/script_to_header.py
@@ -43,7 +43,7 @@ def script_to_gdn(filename):
returntype = "void"
if "->" in line:
- returntype = line[line.index("->"+1),line.index(":").strip()]
+ returntype = line[line.index("->")+1:line.index(":")].strip()
funcname = line[ line[0:line.index("(")].rindex(" ") : int(line.index("(")) ].strip()