Skip to content


Fix clang error
Browse files Browse the repository at this point in the history
src/unit/script_unittype.cpp:1345:54: error: cannot pass non-trivial object of type 'std::string' (aka 'basic_string<char, char_traits<char>, allocator<char> >') to variadic function; expected type from format string was 'char *' [-Wnon-pod-varargs]
  • Loading branch information
AMDmi3 committed Jun 2, 2015
1 parent c4a0cb0 commit bded1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unit/script_unittype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@ static int CclDefineUnitType(lua_State *l)
type->Parent = LuaToString(l, -1);
CUnitType *parent_type = UnitTypeByIdent(type->Parent);
if (!parent_type) {
LuaError(l, "Unit type %s not defined" _C_ type->Parent);
LuaError(l, "Unit type %s not defined" _C_ type->Parent.c_str());
type->Class = parent_type->Class;
type->DrawLevel = parent_type->DrawLevel;
Expand Down

0 comments on commit bded1bf

Please sign in to comment.