inherit the class, not the name

This commit is contained in:
Shish 2012-03-19 11:33:06 +00:00
parent 50a6013569
commit 45bff3ff31

View File

@ -10,9 +10,12 @@ class UserClass {
global $_user_classes; global $_user_classes;
$this->name = $name; $this->name = $name;
$this->parent = $parent;
$this->abilities = $abilities; $this->abilities = $abilities;
if(!is_null($parent)) {
$this->parent = $_user_classes[$parent];
}
$_user_classes[$name] = $this; $_user_classes[$name] = $this;
} }