diff LOD.h @ 1464:b870630761df

m
author Ritor1
date Mon, 26 Aug 2013 10:39:10 +0600
parents c0b273d33338
children 7ef4b64f6329
line wrap: on
line diff
--- a/LOD.h	Sun Aug 11 12:09:33 2013 +0600
+++ b/LOD.h	Mon Aug 26 10:39:10 2013 +0600
@@ -168,8 +168,9 @@
   inline struct Texture *GetTexture(int idx)
   {
     assert(idx < 1000);
-    if (idx == -1) return nullptr; // we need to return dummy texture here
-    return pTextures + idx;
+    if (idx == -1) 
+      return nullptr; // we need to return dummy texture here
+    return &pTextures[idx];
   }