cair / deep-rts

A Real-Time-Strategy game for Deep Learning research
MIT License
202 stars 34 forks source link

[Bugfix] Stone Cost not initialized when creating units #51

Closed AndreasEike closed 1 year ago

AndreasEike commented 1 year ago

Hello, I've found a bug when spawning units. I noticed that when a player spawns a peasant unit, the player would receive huge amounts of stone (either negative or positive amounts):

Cost for creating a peasant unit: 400, 0, 556288460 gold, lumber, stone

Finally found the cause for the bug, it seems to be a logical error where stoneCost is never initialized because of several spelling errors, causing random values for all available units.