This commit is contained in:
Steffen Schröder
2014-04-27 18:59:21 +02:00
parent 7145cd267b
commit c0e2ed7370
9 changed files with 270 additions and 254 deletions

View File

@ -81,7 +81,7 @@ class Script {
else {
$scriptFunction = new ScriptFunction($name, $text);
}
array_push($this->functions, $scriptFunction);
$this->functions[$scriptFunction->getName()] = $scriptFunction;
return $this;
}