[Fix] Initializing variables in loops is bad ya?

This commit is contained in:
Rtch90 2012-09-05 22:20:38 +01:00
parent cab351b8f5
commit 875535b1c6

View File

@ -32,9 +32,8 @@ void Slot::Render(void) {
}
void Slot::Render(float x, float y) {
int offset = 52;
for(int i = 0; i < _index; i++) {
int offset = 52;
if(i != _index) {
x += offset;
_slotArray[_index]->Render(x, y);