fixed problem on startup

This commit is contained in:
uid68803 2004-02-20 20:13:09 +00:00
parent c9921a0f2f
commit 70db49cc75
3 changed files with 11 additions and 2 deletions

View file

@ -120,7 +120,7 @@ Defeat:
[message]
id=msg8_1a
description=Konrad
message="What is this place? That is one tall mountain!
message="What is this place? That is one tall mountain!"
[/message]
[message]
id=msg8_2b

View file

@ -112,7 +112,7 @@ Defeat:
[/message]
[message]
description=Delfador
message=Underground roads once led to the differents parts of the complex, but now everything lies in ruins."
message="Underground roads once led to the differents parts of the complex, but now everything lies in ruins."
id=msg13_2
[/message]
[/event]

View file

@ -525,6 +525,15 @@ void config::read(const std::string& data,
break;
case VALUE:
if(c == '[') {
if(line_sources != NULL) {
const line_source src = get_line_source(*line_sources,line);
std::cerr << src.file << " " << src.fileline << ": ";
}
std::cerr << "WARNING: square bracket found in string. Is this a run-away string?\n";
}
if(c == '"') {
in_quotes = !in_quotes;
has_quotes = true;