mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-14 03:09:08 +00:00
Fixed: Crash when trying to display a missing texture
This commit is contained in:
parent
33115f61b2
commit
dd116afff3
1 changed files with 3 additions and 0 deletions
|
@ -354,6 +354,9 @@ namespace NLGUI
|
||||||
// start to draw at the reference corner
|
// start to draw at the reference corner
|
||||||
getTextureSizeFromId (nTxId, txw, txh);
|
getTextureSizeFromId (nTxId, txw, txh);
|
||||||
|
|
||||||
|
// to avoid a division by zero crash later
|
||||||
|
if (txw < 0 || txh < 0) return;
|
||||||
|
|
||||||
if (rot > 3) rot = 3;
|
if (rot > 3) rot = 3;
|
||||||
|
|
||||||
sint32 startX = x, startY = y;
|
sint32 startX = x, startY = y;
|
||||||
|
|
Loading…
Reference in a new issue