mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-31 02:19:09 +00:00
Fix: three max-values for settings could exceed their storage size
This commit is contained in:
committed by
Patric Stout
parent
abac4b1758
commit
a0c298a539
@@ -435,7 +435,7 @@ type = SLE_UINT16
|
||||
from = SLV_156
|
||||
def = 4096
|
||||
min = 0
|
||||
max = 1 << 30
|
||||
max = 1 << 15
|
||||
interval = 1
|
||||
cat = SC_EXPERT
|
||||
|
||||
@@ -457,7 +457,7 @@ type = SLE_UINT16
|
||||
from = SLV_156
|
||||
def = 4096
|
||||
min = 0
|
||||
max = 1 << 30
|
||||
max = 1 << 15
|
||||
interval = 1
|
||||
cat = SC_EXPERT
|
||||
|
||||
@@ -479,7 +479,7 @@ type = SLE_UINT16
|
||||
from = SLV_175
|
||||
def = 4096
|
||||
min = 0
|
||||
max = 1 << 30
|
||||
max = 1 << 15
|
||||
interval = 1
|
||||
cat = SC_EXPERT
|
||||
|
||||
|
Reference in New Issue
Block a user