fix crash in grid layout
fix crash in grid layout

EvilHero90/otclient,dreamsxin/otclient,Cavitt/otclient_mapgen,gpedro/otclient,Radseq/otclient,gpedro/otclient,EvilHero90/otclient,kwketh/otclient,dreamsxin/otclient,gpedro/otclient,Radseq/otclient,kwketh/otclient,Cavitt/otclient_mapgen,dreamsxin/otclient