Fixed CPU name retrieval

This commit is contained in:
Andrey Guskov
2015-02-20 17:36:13 +03:00
parent 86ba817445
commit 803b0a2811

View File

@@ -352,7 +352,7 @@ public:
return CPUs.str();
}
std::string GetDefaultNameFromType(CPUtype type) {
std::string &GetDefaultNameFromType(CPUtype type) {
Assert((type > CPU_None) && (type < sizeofCPUtype));
return names[type][0];
}