Skip to content

Commit

Permalink
Fix to issue #101
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrettin committed Aug 21, 2016
1 parent 03ebb13 commit bd7b686
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/map/script_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ static int CclDefineTerrainType(lua_State *l)
} else if (tile_flag == "stumps") {
terrain->Flags |= MapFieldStumps;
} else {
LuaError(l, "Flag \"%s\" doesn't exist.");
LuaError(l, "Flag \"%s\" doesn't exist." _C_ tile_flag.c_str());
}
}
} else if (!strcmp(value, "Graphics")) {
Expand Down
2 changes: 1 addition & 1 deletion src/stratagus/script_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ static int CclSetThisPlayer(lua_State *l)
if (GameRunning) {
for (size_t i = 0; i < ThisPlayer->CurrentQuests.size(); ++i) {
for (size_t j = 0; j < ThisPlayer->CurrentQuests[i]->Objectives.size(); ++j) {
SetObjective(ThisPlayer->CurrentQuests[i]->Objectives[j].c_str());
SetObjective("%s", ThisPlayer->CurrentQuests[i]->Objectives[j].c_str());
}
}
}
Expand Down

0 comments on commit bd7b686

Please sign in to comment.