mirror of
				https://github.com/OpenFusionProject/OpenFusion.git
				synced 2025-10-31 00:30:15 +00:00 
			
		
		
		
	Prioritize ID match over type match when finding a path for an NPC
This commit is contained in:
		| @@ -49,6 +49,9 @@ static NPCPath* findApplicablePath(int32_t id, int32_t type) { | ||||
|             break; | ||||
|         } | ||||
|  | ||||
|         if (match != nullptr) | ||||
|             break; // early break for ID matches, since ID has higher priority than type | ||||
|  | ||||
|         // search target types | ||||
|         for (int32_t pType : _path->targetTypes) { | ||||
|             if (type == pType) match = &(*_path); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 gsemaj
					gsemaj