Code: Select all
array<TextureID> b;
TextureID t = TexMan.checkForTexture("titlepic", TexMan.Type_Any);Code: Select all
b.push(t);However, casting TextureID to int works:
Code: Select all
b.push(int(t));Questions:
1. Is a bug or ZScript limitation?
2. If it's a ZScript limitation, is it safe to cast TextureID to int? I see that C++ TextureID counterpart, FTextureID, consists of a single int, so for now type casting is probably safe. Will it remain so?
Runnable example:

