aboutsummaryrefslogtreecommitdiff
path: root/advtrains/poconvert.lua
diff options
context:
space:
mode:
authorY. Wang <yw05@forksworld.de>2024-03-18 02:05:14 +0100
committerY. Wang <yw05@forksworld.de>2024-04-13 10:36:36 +0200
commit7be1254307a177300bfd8d3ba2eb120064f0ac67 (patch)
tree4aa31b04109fc264bd05ebaff6b86908790c191a /advtrains/poconvert.lua
parent458c8cff9dd2cab8460b9d8037bd37c180fc1010 (diff)
downloadadvtrains-7be1254307a177300bfd8d3ba2eb120064f0ac67.tar.gz
advtrains-7be1254307a177300bfd8d3ba2eb120064f0ac67.tar.bz2
advtrains-7be1254307a177300bfd8d3ba2eb120064f0ac67.zip
Minor: str:sub -> string.sub for consistency with the rest of the codel10n
Diffstat (limited to 'advtrains/poconvert.lua')
-rw-r--r--advtrains/poconvert.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/poconvert.lua b/advtrains/poconvert.lua
index 3075282..74f962e 100644
--- a/advtrains/poconvert.lua
+++ b/advtrains/poconvert.lua
@@ -13,7 +13,7 @@ do
local function replace_single(pfx, c)
local pl = #pfx
if pl % 2 == 0 then
- return pfx:sub(1, pl/2) .. c
+ return string.sub(pfx, 1, pl/2) .. c
end
return string.sub(pfx, 1, math.floor(pl/2)) .. (schartbl[c] or c)
end