Dependendcies should now work again.

This commit is contained in:
johns 2000-05-11 19:59:16 +00:00
parent 5c7788981b
commit 55a5fc12c3

View file

@ -328,7 +328,7 @@ global int CheckDependByIdent(const Player* player,const char* target)
//
// Find rule
//
i=rule.Kind.UnitType->Type%(sizeof(DependHash)/sizeof(*DependHash));
i=(int)(long)rule.Kind.UnitType%(sizeof(DependHash)/sizeof(*DependHash));
if( (node=DependHash[i]) ) { // find correct entry
while( node->Type!=rule.Type