Fixed #695
parent
5e23426b53
commit
6832c91496
|
@ -2200,8 +2200,8 @@ void CRobotMain::HelpObject()
|
||||||
CObject* obj = GetSelect();
|
CObject* obj = GetSelect();
|
||||||
if (obj == nullptr) return;
|
if (obj == nullptr) return;
|
||||||
|
|
||||||
const char* filename = GetHelpFilename(obj->GetType()).c_str();
|
std::string filename = GetHelpFilename(obj->GetType());
|
||||||
if (filename[0] == 0) return;
|
if (filename.empty()) return;
|
||||||
|
|
||||||
StartDisplayInfo(filename, -1);
|
StartDisplayInfo(filename, -1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue