mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-13 12:10:30 +00:00
Fixing some evil behaviour
svn-id: r15907
This commit is contained in:
parent
fe43ebf73b
commit
6bcb1ce7d9
@ -147,6 +147,7 @@ static ResString string_map_table_v5[] = {
|
|||||||
|
|
||||||
|
|
||||||
const Common::String ScummDialog::queryResString(int stringno) {
|
const Common::String ScummDialog::queryResString(int stringno) {
|
||||||
|
byte buf[256];
|
||||||
byte *result;
|
byte *result;
|
||||||
|
|
||||||
if (stringno == 0)
|
if (stringno == 0)
|
||||||
@ -163,11 +164,8 @@ const Common::String ScummDialog::queryResString(int stringno) {
|
|||||||
return string_map_table_v5[stringno - 1].string;
|
return string_map_table_v5[stringno - 1].string;
|
||||||
|
|
||||||
if (result && *result == '/') {
|
if (result && *result == '/') {
|
||||||
byte tmp[256];
|
_vm->translateText(result, buf);
|
||||||
_vm->translateText(result, tmp);
|
result = buf;
|
||||||
|
|
||||||
// FIXME: AARGH! We shouldn't just strcpy into the data we got from getStringAddress
|
|
||||||
strcpy((char *)result, (char *)tmp);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!result || *result == '\0') { // Gracelessly degrade to english :)
|
if (!result || *result == '\0') { // Gracelessly degrade to english :)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user