summaryrefslogtreecommitdiff
path: root/luapatch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'luapatch.cpp')
-rw-r--r--luapatch.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/luapatch.cpp b/luapatch.cpp
index 369b55a..07e129d 100644
--- a/luapatch.cpp
+++ b/luapatch.cpp
@@ -99,8 +99,13 @@ void translate(int ownerid, HWND hW) {
return;
for (txt = t->trad; txt->str; txt++) {
- if (txt->owner == ownerid)
- SetDlgItemText(hW, txt->id, txt->str);
+ if (txt->owner == ownerid) {
+ if (txt->id == -1) {
+ SetWindowText(hW, txt->str);
+ } else {
+ SetDlgItemText(hW, txt->id, txt->str);
+ }
+ }
}
}