mirror of
https://github.com/glest/glest-source.git
synced 2025-08-27 17:59:48 +02:00
- updated error message to be more clear and specify which techtree is involved
This commit is contained in:
@@ -342,7 +342,10 @@ const ResourceType *TechTree::getFirstTechResourceType() const{
|
||||
return getResourceType(i);
|
||||
}
|
||||
|
||||
throw megaglest_runtime_error("This tech tree has no resources defined, at least one is required");
|
||||
char szBuf[8096]="";
|
||||
sprintf(szBuf,"The referenced tech tree [%s] is either missing or has no resources defined but at least one resource is required.",this->name.c_str());
|
||||
//throw megaglest_runtime_error("This tech tree has no resources defined, at least one is required");
|
||||
throw megaglest_runtime_error(szBuf);
|
||||
}
|
||||
|
||||
const ResourceType *TechTree::getResourceType(const string &name) const{
|
||||
|
Reference in New Issue
Block a user