Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
November 21, 2024, 03:39:33 pm
News:
If you can't login, please
contact us
with your username and e-mail so we can fix it.
Home
Help
Search
Calendar
Login
Register
OpenXcom Forum
»
OpenXcom Forks
»
OpenXcom Extended (OXCE)
»
OXCE Bugs
»
OXCE Bugs FIXED
»
[FIXED] Amiga thinking divide by 0 base unit TU
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: [FIXED] Amiga thinking divide by 0 base unit TU (Read 384 times)
Finnik
Commander
Posts: 508
Finnik#0257
[FIXED] Amiga thinking divide by 0 base unit TU
«
on:
September 30, 2024, 05:54:06 pm »
Found a potential crash for feature
https://github.com/723Studio/OpenXcom_FTA/commit/4e88674019846454586011a8ccf7179edac782f0
total += bu->reselectAllowed() ? bu->getTimeUnits() * 100 / bu->getBaseStats()->tu : 0;
Some units that act like a furniture for player to kill (like I have it, as I don't like specific tile destruction mechanic in vanilla) might have tu: 0 in their ruleset, that produces a crash, as there is no checks for it.
Logged
Meridian
Global Moderator
Commander
Posts: 9076
Re: [FIXED] Amiga thinking divide by 0 base unit TU
«
Reply #1 on:
September 30, 2024, 11:09:15 pm »
Fixed.
https://github.com/MeridianOXC/OpenXcom/commit/84166a5f4d583ea9a30246918087ea00c6062776
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
OpenXcom Forum
»
OpenXcom Forks
»
OpenXcom Extended (OXCE)
»
OXCE Bugs
»
OXCE Bugs FIXED
»
[FIXED] Amiga thinking divide by 0 base unit TU