dev-time-step
krzys-h 2015-12-20 14:28:38 +01:00
parent 5e23426b53
commit 6832c91496
1 changed files with 2 additions and 2 deletions

View File

@ -2200,8 +2200,8 @@ void CRobotMain::HelpObject()
CObject* obj = GetSelect();
if (obj == nullptr) return;
const char* filename = GetHelpFilename(obj->GetType()).c_str();
if (filename[0] == 0) return;
std::string filename = GetHelpFilename(obj->GetType());
if (filename.empty()) return;
StartDisplayInfo(filename, -1);
}