[Fix] Initializing variables in loops is bad ya?
This commit is contained in:
parent
cab351b8f5
commit
875535b1c6
@ -32,9 +32,8 @@ void Slot::Render(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Slot::Render(float x, float y) {
|
void Slot::Render(float x, float y) {
|
||||||
for(int i = 0; i < _index; i++) {
|
|
||||||
int offset = 52;
|
int offset = 52;
|
||||||
|
for(int i = 0; i < _index; i++) {
|
||||||
if(i != _index) {
|
if(i != _index) {
|
||||||
x += offset;
|
x += offset;
|
||||||
_slotArray[_index]->Render(x, y);
|
_slotArray[_index]->Render(x, y);
|
||||||
|
Loading…
Reference in New Issue
Block a user